Ticket #40185: 40185.patch
File 40185.patch, 1002 bytes (added by , 3 years ago) |
---|
-
src/wp-admin/includes/meta-boxes.php
50 50 <?php 51 51 $preview_link = esc_url( get_preview_post_link( $post ) ); 52 52 if ( 'publish' == $post->post_status ) { 53 $preview_button = __( 'Preview Changes' );53 $preview_button_text = __( 'Preview Changes' ); 54 54 } else { 55 $preview_button = __( 'Preview' );55 $preview_button_text = __( 'Preview' ); 56 56 } 57 $preview_button = sprintf( '%1$s<span class="screen-reader-text"> %2$s</span>', 58 esc_html( $preview_button_text ), 59 esc_html__( '(link opens in a new window)' ) ); 57 60 ?> 58 61 <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview-<?php echo (int) $post->ID; ?>" id="post-preview"><?php echo $preview_button; ?></a> 59 62 <input type="hidden" name="wp-preview" id="wp-preview" value="" />