Changeset 21825
- Timestamp:
- 09/12/2012 02:16:46 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/widgets.php
r21577 r21825 69 69 ); 70 70 71 if ( empty($wp_registered_sidebars) ) { 72 // the theme has no sidebars, die. 73 require_once( './admin-header.php' ); 74 ?> 75 76 <div class="wrap"> 77 <?php screen_icon(); ?> 78 <h2><?php echo esc_html( $title ); ?></h2> 79 <div class="error"> 80 <p><?php _e( 'No Sidebars Defined' ); ?></p> 81 </div> 82 <p><?php _e( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="http://codex.wordpress.org/Widgetizing_Themes">follow these instructions</a>.' ); ?></p> 83 </div> 84 85 <?php 86 require_once( './admin-footer.php' ); 87 exit; 71 if ( ! current_theme_supports( 'widgets' ) ) { 72 wp_die( __( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="http://codex.wordpress.org/Widgetizing_Themes">follow these instructions</a>.' ) ); 88 73 } 89 74 -
trunk/wp-includes/functions.php
r21823 r21825 2550 2550 function wp_widgets_add_menu() { 2551 2551 global $submenu; 2552 2553 if ( ! current_theme_supports( 'widgets' ) ) 2554 return; 2555 2552 2556 $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' ); 2553 2557 ksort( $submenu['themes.php'], SORT_NUMERIC );
Note: See TracChangeset
for help on using the changeset viewer.