Changeset 35233
- Timestamp:
- 10/17/2015 12:43:54 AM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r35170 r35233 260 260 $slug = $post->post_name; 261 261 262 $draft_or_pending = isset( $post->post_status ) && in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', 'future' ) );262 $draft_or_pending = get_post_status( $id ) && in_array( get_post_status( $id ), array( 'draft', 'pending', 'auto-draft', 'future' ) ); 263 263 264 264 $post_type = get_post_type_object($post->post_type); -
trunk/src/wp-includes/post-functions.php
r35170 r35233 574 574 } 575 575 576 return $post->post_status; 576 /** 577 * Filters the post status. 578 * 579 * @since 4.4.0 580 * 581 * @param string $post->post_status The status of the post. 582 */ 583 return apply_filters( 'get_post_status', $post->post_status, $post ); 577 584 } 578 585
Note: See TracChangeset
for help on using the changeset viewer.