Changeset 20712
- Timestamp:
- 05/03/2012 01:30:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r20706 r20712 92 92 add_action("admin_head-$page", array(&$this, 'take_action'), 50); 93 93 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); 95 96 96 97 add_filter( 'attachment_fields_to_edit', array( $this, 'attachment_fields_to_edit' ), 10, 2 ); -
trunk/wp-includes/theme.php
r20684 r20712 1348 1348 1349 1349 $args = get_theme_support( 'custom-header' ); 1350 if ( $args[0]['wp-head-callback'] && $args[0]['admin-head-callback'] ) {1350 if ( $args[0]['wp-head-callback'] ) 1351 1351 add_action( 'wp_head', $args[0]['wp-head-callback'] ); 1352 1352 1353 if ( is_admin() ) { 1354 require_once( ABSPATH . 'wp-admin/custom-header.php' ); 1355 $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1356 } 1353 if ( is_admin() ) { 1354 require_once( ABSPATH . 'wp-admin/custom-header.php' ); 1355 $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1357 1356 } 1358 1357 } … … 1558 1557 $old_theme = wp_get_theme( $stylesheet ); 1559 1558 1560 1561 1559 if ( $old_theme->exists() ) 1562 1560 do_action( 'after_switch_theme', $old_theme->get('Name'), $old_theme );
Note: See TracChangeset
for help on using the changeset viewer.