Make WordPress Core


Ignore:
Timestamp:
05/03/2012 01:30:55 PM (13 years ago)
Author:
nacin
Message:

Make admin-head-callback optional for custom headers. Reverts part of [20684]. fixes #20603.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r20706 r20712  
    9292        add_action("admin_head-$page", array(&$this, 'take_action'), 50);
    9393        add_action("admin_head-$page", array(&$this, 'js'), 50);
    94         add_action("admin_head-$page", $this->admin_header_callback, 51);
     94        if ( $this->admin_header_callback )
     95            add_action("admin_head-$page", $this->admin_header_callback, 51);
    9596
    9697        add_filter( 'attachment_fields_to_edit', array( $this, 'attachment_fields_to_edit' ), 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.