Return true if not is_admin. Tidy. see #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@16677 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bc10d6fb59
commit
6297b3184b
|
@ -1478,14 +1478,11 @@ function remove_custom_image_header() {
|
||||||
_remove_theme_support( 'custom-header' );
|
_remove_theme_support( 'custom-header' );
|
||||||
remove_theme_support( 'custom-header-uploads' );
|
remove_theme_support( 'custom-header-uploads' );
|
||||||
|
|
||||||
if ( ! is_admin() )
|
if ( is_admin() ) {
|
||||||
return;
|
remove_action( 'admin_menu', array( &$GLOBALS['custom_image_header'], 'init' ) );
|
||||||
|
|
||||||
global $custom_image_header;
|
|
||||||
|
|
||||||
remove_action( 'admin_menu', array( &$custom_image_header, 'init' ) );
|
|
||||||
|
|
||||||
unset( $GLOBALS['custom_image_header'] );
|
unset( $GLOBALS['custom_image_header'] );
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue