Make WordPress Core

Changeset 16677


Ignore:
Timestamp:
12/02/2010 12:50:23 AM (14 years ago)
Author:
nacin
Message:

Return true if not is_admin. Tidy. see #14903.

File:
1 edited

Legend:

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

    r16674 r16677  
    14791479    remove_theme_support( 'custom-header-uploads' );
    14801480
    1481     if ( ! is_admin() )
    1482         return;
    1483 
    1484     global $custom_image_header;
    1485 
    1486     remove_action( 'admin_menu', array( &$custom_image_header, 'init' ) );
    1487 
    1488     unset( $GLOBALS['custom_image_header'] );
     1481    if ( is_admin() ) {
     1482        remove_action( 'admin_menu', array( &$GLOBALS['custom_image_header'], 'init' ) );
     1483        unset( $GLOBALS['custom_image_header'] );
     1484    }
     1485
    14891486    return true;
    14901487}
Note: See TracChangeset for help on using the changeset viewer.