Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/15/2010 04:43:07 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Use is_super_admin instead of deprecated is_site_admin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-forums/bp-forums-templatetags.php

    r3143 r3192  
    557557                $links[] = '<a href="' . wp_nonce_url( bp_get_the_topic_permalink() . 'edit', 'bp_forums_edit_topic' ) . '">' . __( 'Edit Topic', 'buddypress' ) . '</a>';
    558558
    559                 if ( $bp->is_item_admin || $bp->is_item_mod || is_site_admin() ) {
     559                if ( $bp->is_item_admin || $bp->is_item_mod || is_super_admin() ) {
    560560                        if ( 0 == (int)$forum_template->topic->topic_sticky )
    561561                                $links[] = '<a href="' . wp_nonce_url( bp_get_the_topic_permalink() . 'stick', 'bp_forums_stick_topic' ) . '">' . __( 'Sticky Topic', 'buddypress' ) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.