Changeset 34170 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 09/15/2015 04:14:23 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r34109 r34170 900 900 global $wp_rewrite; 901 901 $post = get_post(); 902 $query_args = array(); 902 903 903 904 if ( 1 == $i ) { … … 913 914 914 915 if ( is_preview() ) { 915 $url = add_query_arg( array(916 'preview' => 'true'917 ), $url );918 916 919 917 if ( ( 'draft' !== $post->post_status ) && isset( $_GET['preview_id'], $_GET['preview_nonce'] ) ) { 920 $ url = add_query_arg( array(921 'preview_id' => wp_unslash( $_GET['preview_id'] ),922 'preview_nonce' => wp_unslash( $_GET['preview_nonce'] )923 ), $url ); 924 }918 $query_args['preview_id'] = wp_unslash( $_GET['preview_id'] ); 919 $query_args['preview_nonce'] = wp_unslash( $_GET['preview_nonce'] ); 920 } 921 922 $url = get_preview_post_link( $post, $query_args, $url ); 925 923 } 926 924
Note: See TracChangeset
for help on using the changeset viewer.