WordPress.org

Make WordPress Core

Changeset 24780


Ignore:
Timestamp:
07/23/2013 03:04:55 PM (5 years ago)
Author:
nacin
Message:

Do set_url_scheme() for Preview action link in the posts list table. props reidburke, fixes #23886.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r24593 r24780  
    597597                    if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) {
    598598                        if ( $can_edit_post )
    599                             $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 &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
     599                            $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', set_url_scheme( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
    600600                    } elseif ( 'trash' != $post->post_status ) {
    601601                        $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.