mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Coding Standards: Move wp-admin/custom-background.php to wp-admin/includes/class-custom-background.php
This renames the file containing the Custom_Background class to conform to the coding standards. This commit also includes: - A new custom-background.php that includes the new file, for anyone that may've been including the file directly. - Replaces a reference to the old filename with the new filename. See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45662 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2617,7 +2617,7 @@ function _custom_header_background_just_in_time() {
|
||||
add_action( 'wp_head', $args[0]['wp-head-callback'] );
|
||||
|
||||
if ( is_admin() ) {
|
||||
require_once( ABSPATH . 'wp-admin/custom-background.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-custom-background.php' );
|
||||
$custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user