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:
Ryan Boren
2010-02-25 19:18:44 +00:00
parent 899906649c
commit 4ee18ae484
3 changed files with 109 additions and 2 deletions
+13
View File
@@ -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.
*