[wp-trac] [WordPress Trac] #19131: setting $taxnow in POSTS

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 17 19:49:27 UTC 2011


#19131: setting $taxnow in POSTS
----------------------------+-----------------------
 Reporter:  haayman         |       Owner:  ryan
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  3.3
Component:  Administration  |     Version:  3.2.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+-----------------------

Comment (by nacin):

 typenow:
 {{{
 ./wp-admin/admin.php:92:        $typenow = $_REQUEST['post_type'];
 ./wp-admin/admin.php:94:        $typenow = '';
 ./wp-admin/admin.php:114:       if ( !empty($typenow) )
 ./wp-admin/admin.php:115:               $the_parent = $pagenow .
 '?post_type=' . $typenow;
 ./wp-admin/admin.php:217:       if ( $typenow == 'page' ) {
 ./wp-admin/edit.php:12:if ( ! $typenow )
 ./wp-admin/edit.php:15:$post_type = $typenow;
 ./wp-admin/includes/plugin.php:1338:    global $typenow;
 ./wp-admin/includes/plugin.php:1387:                    if (
 !empty($typenow) && ($submenu_array[2] == "$pagenow?post_type=$typenow") )
 {
 ./wp-admin/includes/plugin.php:1390:                    } elseif (
 $submenu_array[2] == $pagenow && empty($typenow) && ( empty($parent_file)
 || false === strpos($parent_file, '?') ) ) {
 ./wp-admin/includes/plugin.php:1412:    global $typenow;
 ./wp-admin/includes/plugin.php:1447:
 ( !empty($typenow) && $parent == $pagenow . '?post_type=' . $typenow)
 ./wp-admin/includes/screen.php:531:             global $current_screen,
 $taxnow, $typenow;
 ./wp-admin/includes/screen.php:534:             $typenow =
 $this->post_type;
 ./wp-admin/menu-header.php:37:  global $self, $parent_file, $submenu_file,
 $plugin_page, $pagenow, $typenow;
 ./wp-admin/menu-header.php:56:          if ( ( $parent_file && $item[2] ==
 $parent_file ) || ( empty($typenow) && $self == $item[2] ) )
 ./wp-admin/menu-header.php:123:                         $self_type = !
 empty( $typenow ) ? $self . '?post_type=' . $typenow : 'nothing';
 }}}

 taxnow:
 {{{
 ./wp-admin/admin.php:97:        $taxnow = $_REQUEST['taxonomy'];
 ./wp-admin/admin.php:99:        $taxnow = '';
 ./wp-admin/admin.php:223:               if ( $taxnow == 'category' )
 ./wp-admin/admin.php:225:               elseif ( $taxnow ==
 'link_category' )
 ./wp-admin/edit-tags.php:12:if ( ! $taxnow )
 ./wp-admin/edit-tags.php:15:$tax = get_taxonomy( $taxnow );
 ./wp-admin/includes/screen.php:531:             global $current_screen,
 $taxnow, $typenow;
 ./wp-admin/includes/screen.php:533:             $taxnow = $this->taxonomy;
 }}}

 Most of these don't really need to be touched for now. Let's just stop
 propagating it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19131#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list