Make WordPress Core


Ignore:
Timestamp:
04/16/2009 11:42:42 PM (16 years ago)
Author:
ryan
Message:

Fix missing titles for plugins without submenus. Props clwill. fixes #9146

File:
1 edited

Legend:

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

    r10715 r10966  
    863863            }
    864864        }
     865        if ( !isset($title) || empty ( $title ) ) {
     866            foreach ( $menu as $menu_array ) {
     867                if ( isset( $plugin_page ) &&
     868                    ($plugin_page == $menu_array[2] ) &&
     869                    ($pagenow == 'admin.php' ) &&
     870                    ($parent1 == $menu_array[2] ) )
     871                    {
     872                        $title = $menu_array[3];
     873                        return $menu_array[3];
     874                    }
     875            }
     876        }
    865877    }
    866878
Note: See TracChangeset for help on using the changeset viewer.