WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/04/2010 04:58:43 PM (10 years ago)
Author:
ryan
Message:

More custom post type support. Props scribu. see #9674

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r12048 r12597  
    746746        return $parent;
    747747    }
    748 /*
     748
     749    /*
    749750    if ( !empty ( $parent_file ) ) {
    750751        if ( isset( $_wp_real_parent_file[$parent_file] ) )
     
    753754        return $parent_file;
    754755    }
    755 */
     756    */
    756757
    757758    if ( $pagenow == 'admin.php' && isset( $plugin_page ) ) {
     
    783784            if ( isset( $_wp_real_parent_file[$parent] ) )
    784785                $parent = $_wp_real_parent_file[$parent];
    785             if ( $submenu_array[2] == $pagenow ) {
     786            if ( $submenu_array[2] == $pagenow && ( empty($parent_file) || false === strpos($parent_file, '?') ) ) {
    786787                $parent_file = $parent;
    787788                return $parent;
Note: See TracChangeset for help on using the changeset viewer.