Changeset 5687 for trunk/bp-forums/bp-forums-template.php
- Timestamp:
- 02/09/2012 11:00:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-template.php
r5480 r5687 775 775 } 776 776 function bp_get_the_topic_is_mine() { 777 global $ bp, $forum_template;777 global $forum_template; 778 778 779 779 return bp_loggedin_user_id() == $forum_template->topic->topic_poster; … … 784 784 } 785 785 function bp_get_the_topic_admin_links( $args = '' ) { 786 global $ bp, $forum_template;786 global $forum_template; 787 787 788 788 $defaults = array( … … 795 795 $links[] = '<a href="' . wp_nonce_url( bp_get_the_topic_permalink() . 'edit', 'bp_forums_edit_topic' ) . '">' . __( 'Edit Topic', 'buddypress' ) . '</a>'; 796 796 797 if ( $bp->is_item_admin || $bp->is_item_mod|| bp_current_user_can( 'bp_moderate' ) ) {797 if ( bp_is_item_admin() || bp_is_item_mod() || bp_current_user_can( 'bp_moderate' ) ) { 798 798 if ( 0 == (int)$forum_template->topic->topic_sticky ) 799 799 $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.