Move `wp_widgets_access_body_class()` (a hook callback) from `wp-admin/widgets.php` to `wp-admin/includes/widgets.php`.
See #33813. Built from https://develop.svn.wordpress.org/trunk@34017 git-svn-id: http://core.svn.wordpress.org/trunk@33986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
21dd98695c
commit
f8d7a43920
|
@ -263,3 +263,12 @@ function wp_widget_control( $sidebar_args ) {
|
||||||
|
|
||||||
return $sidebar_args;
|
return $sidebar_args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param string $classes
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function wp_widgets_access_body_class($classes) {
|
||||||
|
return "$classes widgets_access ";
|
||||||
|
}
|
|
@ -26,15 +26,6 @@ if ( isset($_GET['widgets-access']) ) {
|
||||||
set_user_setting( 'widgets_access', $widgets_access );
|
set_user_setting( 'widgets_access', $widgets_access );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param string $classes
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function wp_widgets_access_body_class($classes) {
|
|
||||||
return "$classes widgets_access ";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( 'on' == $widgets_access ) {
|
if ( 'on' == $widgets_access ) {
|
||||||
add_filter( 'admin_body_class', 'wp_widgets_access_body_class' );
|
add_filter( 'admin_body_class', 'wp_widgets_access_body_class' );
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34016';
|
$wp_version = '4.4-alpha-34017';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue