mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Default header selector, first pass. see #12343
git-svn-id: https://develop.svn.wordpress.org/trunk@13403 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1334,6 +1334,19 @@ function add_custom_image_header($header_callback, $admin_header_callback, $admi
|
||||
add_action('admin_menu', array(&$GLOBALS['custom_image_header'], 'init'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a selection of default headers to be displayed by the custom header admin UI.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param array $headers Array of headers keyed by a string id. The ids point to arrays containing 'url', 'thumbnail_url', and 'description' keys.
|
||||
*/
|
||||
function register_default_headers( $headers ) {
|
||||
global $_wp_default_headers;
|
||||
|
||||
$_wp_default_headers = $headers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve background image for custom background.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user