WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/02/2012 03:16:48 PM (9 years ago)
Author:
nacin
Message:

Require both wp-head-callback and admin-head-callback for custom header theme support. fixes #20603.

File:
1 edited

Legend:

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

    r20642 r20684  
    30233023 * @param callback $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
    30243024 */
    3025 function add_custom_image_header( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) {
     3025function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) {
    30263026    _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' );
    3027     $args = array();
    3028     if ( $wp_head_callback )
    3029         $args['wp-head-callback'] = $wp_head_callback;
    3030     if ( $admin_head_callback )
    3031         $args['admin-head-callback'] = $admin_head_callback;
     3027    $args = array(
     3028        'wp-head-callback'    => $wp_head_callback,
     3029        'admin-head-callback' => $admin_head_callback,
     3030    );
    30323031    if ( $admin_preview_callback )
    30333032        $args['admin-preview-callback'] = $admin_preview_callback;
Note: See TracChangeset for help on using the changeset viewer.