Changeset 51061
- Timestamp:
- 06/02/2021 01:56:35 AM (4 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/widgets-form-blocks.php
r51039 r51061 56 56 do_action( 'enqueue_block_editor_assets' ); 57 57 58 /** This action is documented in wp-admin/widgets-form.php */ 59 do_action( 'sidebar_admin_setup' ); 60 58 61 require_once ABSPATH . 'wp-admin/admin-header.php'; 59 62 … … 65 68 66 69 <?php 70 /** This action is documented in wp-admin/widgets-form.php */ 71 do_action( 'sidebar_admin_page' ); 72 67 73 require_once ABSPATH . 'wp-admin/admin-footer.php'; -
trunk/src/wp-admin/widgets-form.php
r50997 r51061 72 72 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' 73 73 ); 74 75 if ( ! current_theme_supports( 'widgets' ) ) {76 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="https://developer.wordpress.org/themes/functionality/widgets/">follow these instructions</a>.' ) );77 }78 74 79 75 // These are the widgets grouped by sidebar. -
trunk/src/wp-admin/widgets.php
r50996 r51061 21 21 } 22 22 23 if ( ! current_theme_supports( 'widgets' ) ) { 24 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="https://developer.wordpress.org/themes/functionality/widgets/">follow these instructions</a>.' ) ); 25 } 26 23 27 $title = __( 'Widgets' ); 24 28 $parent_file = 'themes.php';
Note: See TracChangeset
for help on using the changeset viewer.