Changeset 35233 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 10/17/2015 12:43:54 AM (10 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.