From ac90567ef10e1a474b024f5f7db124f4d3887435 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 18 Oct 2014 20:10:47 +0000 Subject: [PATCH] Use proper functions for escaped translations. pros jcastaneda. fixes #30012. git-svn-id: https://develop.svn.wordpress.org/trunk@29961 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-posts-list-table.php | 10 +++++----- src/wp-admin/press-this.php | 4 ++-- src/wp-admin/themes.php | 2 +- src/wp-includes/default-widgets.php | 2 +- src/wp-includes/script-loader.php | 18 +++++++++--------- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index c51d41bc8e..076ee7d538 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -664,16 +664,16 @@ class WP_Posts_List_Table extends WP_List_Table { $actions = array(); if ( $can_edit_post && 'trash' != $post->post_status ) { - $actions['edit'] = '' . __( 'Edit' ) . ''; - $actions['inline hide-if-no-js'] = '' . __( 'Quick Edit' ) . ''; + $actions['edit'] = '' . __( 'Edit' ) . ''; + $actions['inline hide-if-no-js'] = '' . __( 'Quick Edit' ) . ''; } if ( current_user_can( 'delete_post', $post->ID ) ) { if ( 'trash' == $post->post_status ) - $actions['untrash'] = "ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . ""; + $actions['untrash'] = "ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . ""; elseif ( EMPTY_TRASH_DAYS ) - $actions['trash'] = "" . __( 'Trash' ) . ""; + $actions['trash'] = "" . __( 'Trash' ) . ""; if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS ) - $actions['delete'] = "" . __( 'Delete Permanently' ) . ""; + $actions['delete'] = "" . __( 'Delete Permanently' ) . ""; } if ( $post_type_object->public ) { if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { diff --git a/src/wp-admin/press-this.php b/src/wp-admin/press-this.php index 5daa2f9bbd..09548bad09 100644 --- a/src/wp-admin/press-this.php +++ b/src/wp-admin/press-this.php @@ -149,9 +149,9 @@ if ( !empty($_REQUEST['ajax']) ) {

- + - <?php echo esc_attr(__('Click to insert.')); ?> + <?php esc_attr_e( 'Click to insert.' ); ?>

diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index 4ca20360a1..5a4dc2c20f 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -119,7 +119,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );

- +