Changeset 5296
- Timestamp:
- 04/09/2017 06:10:05 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php
r5113 r5296 160 160 <?php endif; ?> 161 161 162 <?php if ( current_user_can( 'moderate' ) ) : ?>162 <?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) ) : ?> 163 163 164 164 <?php do_action( 'bbp_theme_before_topic_form_type' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r5163 r5296 299 299 $hours_passed = (int) ( $seconds_passed / HOUR_IN_SECONDS ); 300 300 $post_status = get_post_status(); 301 $is_moderator = current_user_can( 'moderate' );301 $is_moderator = current_user_can( 'moderate', get_the_ID() ); 302 302 $is_user_blocked = ! current_user_can( 'spectate' ); 303 303 $notice_class = '';
Note: See TracChangeset
for help on using the changeset viewer.