Changeset 36926
- Timestamp:
- 03/10/2016 04:41:34 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r36808 r36926 1226 1226 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 1227 1227 if ( $can_edit_post ) { 1228 $unpublished_link = set_url_scheme( get_permalink( $post ) ); 1229 $preview_link = get_preview_post_link( $post, array(), $unpublished_link ); 1228 $preview_link = get_preview_post_link( $post ); 1230 1229 $actions['view'] = sprintf( 1231 1230 '<a href="%s" rel="permalink" aria-label="%s">%s</a>', -
trunk/src/wp-admin/includes/post.php
r36853 r36926 1295 1295 if ( current_user_can( 'read_post', $post->ID ) ) { 1296 1296 if ( 'draft' === $post->post_status ) { 1297 $draft_link = set_url_scheme( get_permalink( $post->ID ) ); 1298 $view_link = get_preview_post_link( $post, array(), $draft_link ); 1297 $view_link = get_preview_post_link( $post ); 1299 1298 $preview_target = " target='wp-preview-{$post->ID}'"; 1300 1299 } else { -
trunk/src/wp-includes/admin-bar.php
r36874 r36926 559 559 { 560 560 if ( 'draft' == $post->post_status ) { 561 $draft_link = set_url_scheme( get_permalink( $post->ID ) ); 562 $preview_link = get_preview_post_link( $post, array(), $draft_link ); 561 $preview_link = get_preview_post_link( $post ); 563 562 $wp_admin_bar->add_menu( array( 564 563 'id' => 'preview', -
trunk/src/wp-includes/link-template.php
r36874 r36926 1223 1223 if ( is_post_type_viewable( $post_type_object ) ) { 1224 1224 if ( ! $preview_link ) { 1225 $preview_link = get_permalink( $post);1225 $preview_link = set_url_scheme( get_permalink( $post ) ); 1226 1226 } 1227 1227
Note: See TracChangeset
for help on using the changeset viewer.