]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/widgets.php
WordPress 4.6.2
[autoinstalls/wordpress.git] / wp-admin / widgets.php
index 91d611cd1d38277f28b68c3a56b765f5e28e86b6..c70b1d1ad72ee86a099bda4cae986587ba045f48 100644 (file)
@@ -15,13 +15,15 @@ require_once(ABSPATH . 'wp-admin/includes/widgets.php');
 if ( ! current_user_can( 'edit_theme_options' ) ) {
        wp_die(
                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
-               '<p>' . __( 'You are not allowed to edit theme options on this site.' ) . '</p>',
+               '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>',
                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 );
 }
@@ -357,7 +359,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
                                ),
                                admin_url( 'customize.php' )
                        ) ),
-                       __( 'Manage in Customizer' )
+                       __( 'Manage with Live Preview' )
                );
        }
 ?>