X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/073c5ed6408e2f00dc1863b463fe205467628905..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-admin/widgets.php diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index c70b1d1a..e1ae0913 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -22,8 +22,6 @@ if ( ! current_user_can( 'edit_theme_options' ) ) { $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 ); } @@ -73,8 +71,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' ) ) { @@ -317,9 +315,9 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) { + submit_button( __( 'Save Widget' ), 'primary alignright', 'savewidget', false ); ?> @@ -502,8 +500,8 @@ foreach ( $theme_sidebars as $sidebar => $registered_sidebar ) {
- - + +