Make WordPress Core


Ignore:
Timestamp:
02/25/2010 07:18:44 PM (16 years ago)
Author:
ryan
Message:

Default header selector, first pass. see #12343

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r13377 r13403  
    13331333    $GLOBALS['custom_image_header'] =& new Custom_Image_Header($admin_header_callback, $admin_image_div_callback);
    13341334    add_action('admin_menu', array(&$GLOBALS['custom_image_header'], 'init'));
     1335}
     1336
     1337/**
     1338 * Register a selection of default headers to be displayed by the custom header admin UI.
     1339 *
     1340 * @since 3.0.0
     1341 *
     1342 * @param array $headers Array of headers keyed by a string id.  The ids point to arrays containing 'url', 'thumbnail_url', and 'description' keys.
     1343 */
     1344function register_default_headers( $headers ) {
     1345    global $_wp_default_headers;
     1346
     1347    $_wp_default_headers = $headers;
    13351348}
    13361349
Note: See TracChangeset for help on using the changeset viewer.