X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..HEAD:/wp-admin/widgets.php diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index 3b43ac06..6e0aee1b 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -15,13 +15,15 @@ require_once(ABSPATH . 'wp-admin/includes/widgets.php'); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( '

' . __( 'Cheatin’ uh?' ) . '

' . - '

' . __( 'You are not allowed to edit theme options on this site.' ) . '

', + '

' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '

', 403 ); } $widgets_access = get_user_setting( 'widgets_access' ); if ( isset($_GET['widgets-access']) ) { + check_admin_referer( 'widgets-access' ); + $widgets_access = 'on' == $_GET['widgets-access'] ? 'on' : 'off'; set_user_setting( 'widgets_access', $widgets_access ); } @@ -71,8 +73,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Widgets') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on Widgets') . '

' . + '

' . __('Support Forums') . '

' ); if ( ! current_theme_supports( 'widgets' ) ) { @@ -315,9 +317,9 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) { + submit_button( __( 'Save Widget' ), 'primary alignright', 'savewidget', false ); ?> @@ -357,7 +359,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> ), admin_url( 'customize.php' ) ) ), - __( 'Manage in Customizer' ) + __( 'Manage with Live Preview' ) ); } ?> @@ -406,10 +408,13 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) { if ( !empty( $registered_sidebar['class'] ) ) $wrap_class .= ' ' . $registered_sidebar['class']; + $is_inactive_widgets = 'wp_inactive_widgets' == $registered_sidebar['id']; ?>
+ +

@@ -422,13 +427,16 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) { submit_button( __( 'Clear Inactive Widgets' ), 'delete', 'removeinactivewidgets', false, $attributes ); ?> - +

+
+

+
1 ) { $split = ceil( $sidebars_count / 2 ); } else { - $single_sidebar_class = ' class="single-sidebar"'; + $single_sidebar_class = ' single-sidebar'; } ?>
-
> +