Changeset 31114 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 01/09/2015 04:39:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r31107 r31114 158 158 $permalink = apply_filters( 'pre_post_link', $permalink, $post, $leavename ); 159 159 160 if ( '' != $permalink && !in_array( $post->post_status, array('draft', 'pending', 'auto-draft')) ) {160 if ( '' != $permalink && !in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', 'future' ) ) ) { 161 161 $unixtime = strtotime($post->post_date); 162 162 … … 254 254 $slug = $post->post_name; 255 255 256 $draft_or_pending = isset( $post->post_status) && in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) );256 $draft_or_pending = isset( $post->post_status ) && in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', 'future' ) ); 257 257 258 258 $post_type = get_post_type_object($post->post_type);
Note: See TracChangeset
for help on using the changeset viewer.