Changeset 4581
- Timestamp:
- 12/23/2016 07:05:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r4580 r4581 1397 1397 } 1398 1398 1399 $tags = get_post_meta( $post->ID, '_wp-parser_tags', true ); 1399 $tags = get_post_meta( $post->ID, '_wp-parser_tags', true ); 1400 1400 1401 $access_tags = wp_filter_object_list( $tags, array( 1401 1402 'name' => 'access', 1402 1403 'content' => 'private' 1403 1404 ) ); 1405 $is_private = ! empty( $access_tags ); 1406 1407 if ( ! $is_private ) { 1408 if ( 'private' === get_post_meta( $post->ID, '_wp-parser_visibility', true ) ) { 1409 $is_private = true; 1410 } 1411 } 1404 1412 1405 1413 // Bail if it isn't private. 1406 if ( empty( $access_tags )) {1414 if ( ! $is_private ) { 1407 1415 return ''; 1408 1416 }
Note: See TracChangeset
for help on using the changeset viewer.