Skip to:
Content

BuddyPress.org

Changeset 2713


Ignore:
Timestamp:
02/12/2010 07:00:03 PM (15 years ago)
Author:
apeatling
Message:

Removing redundant theme function.

File:
1 edited

Legend:

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

    r2712 r2713  
    202202add_action( 'init', 'bp_dtheme_add_custom_header_support' );
    203203
    204 /* Remove r */
    205 function bp_dtheme_remove_redundant() {
    206     global $bp;
    207 
    208     /* Remove the navigation options we do not need in this theme. */
    209     bp_core_remove_subnav_item( $bp->blogs->slug, 'my-blogs' );
    210     bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-posts' );
    211     bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-comments' );
    212 }
    213 add_action( 'init', 'bp_dtheme_remove_redundant' );
    214 
     204/* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */
    215205function bp_dtheme_show_notice() { ?>
    216206    <div id="message" class="updated fade">
     
    221211    <?php
    222212}
     213if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" )
     214    add_action( 'admin_notices', 'bp_dtheme_show_notice' );
    223215
    224216/* Add words that we need to use in JS to the end of the page so they can be translated and still used. */
     
    238230add_action( 'wp_footer', 'bp_dtheme_js_terms' );
    239231
    240 
    241 /* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */
    242 if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
    243     add_action( 'admin_notices', 'bp_dtheme_show_notice' );
    244 }
    245 
    246 
    247232?>
Note: See TracChangeset for help on using the changeset viewer.