Changeset 9201 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
- Timestamp:
- 10/17/2019 02:44:34 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r9170 r9201 238 238 $hidden_topic = get_post( $post_id ); 239 239 240 if ( $hidden_topic && ! current_user_can( 'read_topic', $hidden_topic->ID ) ) { 240 if ( $hidden_topic && 241 in_array( $hidden_topic->post_status, array( 'spam', 'pending', 'archived' ) ) && 242 ! current_user_can( 'read_topic', $hidden_topic->ID ) 243 ) { 241 244 $post_id = 0; 242 245 }
Note: See TracChangeset
for help on using the changeset viewer.