WordPress.org

Make WordPress Core

Changeset 16675


Ignore:
Timestamp:
12/02/2010 12:17:12 AM (11 years ago)
Author:
nacin
Message:

Allow the various header constants to be redefined in Twenty Ten. see #14903.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r16522 r16675  
    105105
    106106    // Your changeable header business starts here
    107     define( 'HEADER_TEXTCOLOR', '' );
     107    if ( ! defined( 'HEADER_TEXTCOLOR' ) )
     108        define( 'HEADER_TEXTCOLOR', '' );
     109
    108110    // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
    109     define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' );
     111    if ( ! defined( 'HEADER_IMAGE' ) )
     112        define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' );
    110113
    111114    // The height and width of your custom header. You can hook into the theme's own filters to change these values.
     
    120123
    121124    // Don't support text inside the header image.
    122     define( 'NO_HEADER_TEXT', true );
     125    if ( ! defined( 'NO_HEADER_TEXT' ) )
     126        define( 'NO_HEADER_TEXT', true );
    123127
    124128    // Add a way for the custom header to be styled in the admin panel that controls
Note: See TracChangeset for help on using the changeset viewer.