Ticket #23886: fix_ssl_post_lists_preview.diff
| File fix_ssl_post_lists_preview.diff, 1.2 KB (added by , 13 years ago) |
|---|
-
wp-admin/includes/class-wp-posts-list-table.php
587 587 if ( $post_type_object->public ) { 588 588 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 589 589 if ( $can_edit_post ) 590 $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', get_permalink( $post->ID) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';590 $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', set_url_scheme( get_permalink( $post->ID ) ) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 591 591 } elseif ( 'trash' != $post->post_status ) { 592 592 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>'; 593 593 }