~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-admin/widgets.php

  • Committer: Jamon Camisso
  • Date: 2017-01-12 15:30:45 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: jamon.camisso@canonical.com-20170112153045-dekfwsu8mcsdxa7x
New upstream release 4.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
$widgets_access = get_user_setting( 'widgets_access' );
24
24
if ( isset($_GET['widgets-access']) ) {
 
25
        check_admin_referer( 'widgets-access' );
 
26
 
25
27
        $widgets_access = 'on' == $_GET['widgets-access'] ? 'on' : 'off';
26
28
        set_user_setting( 'widgets_access', $widgets_access );
27
29
}