Ticket #4218: 4218.diff
File 4218.diff, 1.1 KB (added by , 18 years ago) |
---|
-
wp-includes/functions.php
1506 1506 function wp_maybe_load_widgets() { 1507 1507 if ( !function_exists( 'dynamic_sidebar' ) ) { 1508 1508 require_once ABSPATH . WPINC . '/widgets.php'; 1509 1510 if ( strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) !== false && isset( $GLOBALS['submenu'] ) ) { 1511 $GLOBALS['submenu']['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' ); 1512 } 1509 1513 } 1510 1514 } 1511 1515 -
wp-admin/menu.php
67 67 $submenu['plugins.php'][10] = array(__('Plugin Editor'), 'edit_plugins', 'plugin-editor.php'); 68 68 69 69 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 70 $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' );71 70 $submenu['themes.php'][10] = array(__('Theme Editor'), 'edit_themes', 'theme-editor.php'); 72 71 73 72 // Create list of page plugin hook names.