WordPress.org

Make WordPress Core

Ticket #10011: 10011.diff

File 10011.diff, 645 bytes (added by bforchhammer, 5 years ago)
  • wp-admin/includes/plugin.php

     
    705705} 
    706706 
    707707function add_theme_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { 
    708         return add_submenu_page( 'themes.php', $page_title, $menu_title, $access_level, $file, $function ); 
     708        return add_submenu_page( 'themes.php', $page_title, $menu_title, $access_level, theme_basename( $file ), $function ); 
    709709} 
    710710 
    711711function add_users_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {