Changeset 3661 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/explanations.php
- Timestamp:
- 07/10/2016 12:32:05 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/explanations.php
r3609 r3661 252 252 } 253 253 254 if ( ! empty( $screen->post_type ) ) { 255 // Proceed only if there's an explanation for the current reference post type. 256 if ( $explanation = \DevHub\get_explanation( $screen ) ) { 254 // Proceed only if there's an explanation for the current reference post type. 255 if ( ! empty( $screen->post_type ) && $explanation = \DevHub\get_explanation( $screen ) ) { 256 257 // Must be able to edit the explanation. 258 if ( is_user_member_of_blog() && current_user_can( 'edit_explanation', $explanation->ID ) ) { 257 259 $post_type = get_post_type_object( $this->exp_post_type ); 258 260
Note: See TracChangeset
for help on using the changeset viewer.