Skip to:
Content

BuddyPress.org

Changeset 2746


Ignore:
Timestamp:
02/19/2010 11:12:14 AM (14 years ago)
Author:
apeatling
Message:

Fixes #1987 props jjj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-themes/bp-default/functions.php

    r2744 r2746  
    128128/****
    129129 * Custom header image support. You can remove this entirely in a child theme by adding this line
    130  * to your functions.php: remove_action( 'init', 'bp_dtheme_add_custom_header_support' );
     130 * to your functions.php: define( 'BP_DTHEME_DISABLE_CUSTOM_HEADER', true );
    131131 */
    132132function bp_dtheme_add_custom_header_support() {
     
    200200    add_custom_image_header( 'bp_dtheme_header_style', 'bp_dtheme_admin_header_style' );
    201201}
    202 add_action( 'init', 'bp_dtheme_add_custom_header_support' );
     202if ( !defined( 'BP_DTHEME_DISABLE_CUSTOM_HEADER' ) )
     203    add_action( 'init', 'bp_dtheme_add_custom_header_support' );
    203204
    204205/* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */
Note: See TracChangeset for help on using the changeset viewer.