@@ 123-126 (lines=4) @@ | ||
120 | $plugin_page = plugin_basename($plugin_page); |
|
121 | } |
|
122 | ||
123 | if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) |
|
124 | $typenow = $_REQUEST['post_type']; |
|
125 | else |
|
126 | $typenow = ''; |
|
127 | ||
128 | if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] ) ) |
|
129 | $taxnow = $_REQUEST['taxonomy']; |
@@ 286-287 (lines=2) @@ | ||
283 | ||
284 | // If this is the current screen, see if we can be more accurate for post types and taxonomies. |
|
285 | if ( ! $hook_name ) { |
|
286 | if ( isset( $_REQUEST['post_type'] ) ) |
|
287 | $post_type = post_type_exists( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] : false; |
|
288 | if ( isset( $_REQUEST['taxonomy'] ) ) |
|
289 | $taxonomy = taxonomy_exists( $_REQUEST['taxonomy'] ) ? $_REQUEST['taxonomy'] : false; |
|
290 | ||
@@ 333-337 (lines=5) @@ | ||
330 | if ( null === $taxonomy ) |
|
331 | $taxonomy = 'post_tag'; |
|
332 | // The edit-tags ID does not contain the post type. Look for it in the request. |
|
333 | if ( null === $post_type ) { |
|
334 | $post_type = 'post'; |
|
335 | if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) |
|
336 | $post_type = $_REQUEST['post_type']; |
|
337 | } |
|
338 | ||
339 | $id = 'edit-' . $taxonomy; |
|
340 | break; |