Make WordPress Core

Ticket #30012: 30012.2.diff

File 30012.2.diff, 5.9 KB (added by jcastaneda, 10 years ago)
  • wp-admin/includes/class-wp-posts-list-table.php

     
    664664
    665665                                $actions = array();
    666666                                if ( $can_edit_post && 'trash' != $post->post_status ) {
    667                                         $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID, true ) . '" title="' . esc_attr( __( 'Edit this item' ) ) . '">' . __( 'Edit' ) . '</a>';
    668                                         $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr( __( 'Edit this item inline' ) ) . '">' . __( 'Quick&nbsp;Edit' ) . '</a>';
     667                                        $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID, true ) . '" title="' . esc_attr__( 'Edit this item' ) . '">' . __( 'Edit' ) . '</a>';
     668                                        $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr__( 'Edit this item inline' ) . '">' . __( 'Quick&nbsp;Edit' ) . '</a>';
    669669                                }
    670670                                if ( current_user_can( 'delete_post', $post->ID ) ) {
    671671                                        if ( 'trash' == $post->post_status )
    672                                                 $actions['untrash'] = "<a title='" . esc_attr( __( 'Restore this item from the Trash' ) ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
     672                                                $actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash' ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
    673673                                        elseif ( EMPTY_TRASH_DAYS )
    674                                                 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr( __( 'Move this item to the Trash' ) ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
     674                                                $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash' ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
    675675                                        if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS )
    676                                                 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
     676                                                $actions['delete'] = "<a class='submitdelete' title='" . esc_attr__( 'Delete this item permanently' ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
    677677                                }
    678678                                if ( $post_type_object->public ) {
    679679                                        if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) {
  • wp-admin/press-this.php

     
    151151                        <p class="centered">
    152152                                <input type="hidden" name="this_photo" value="<?php echo esc_attr($image); ?>" id="tb_this_photo" class="tb_this_photo" />
    153153                                <a href="#" class="select">
    154                                         <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(__('Click to insert.')); ?>" title="<?php echo esc_attr(__('Click to insert.')); ?>" />
     154                                        <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr__('Click to insert.'); ?>" title="<?php echo esc_attr__('Click to insert.'); ?>" />
    155155                                </a>
    156156                        </p>
    157157
  • wp-admin/themes.php

     
    119119        <h2><?php esc_html_e( 'Themes' ); ?>
    120120                <span class="title-count theme-count"><?php echo count( $themes ); ?></span>
    121121        <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    122                 <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html( _x( 'Add New', 'Add new theme' ) ); ?></a>
     122                <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
    123123        <?php endif; ?>
    124124        </h2>
    125125<?php
  • wp-includes/default-widgets.php

     
    287287                if ( $d ) {
    288288?>
    289289                <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
    290                         <option value=""><?php echo esc_attr( __( 'Select Month' ) ); ?></option>
     290                        <option value=""><?php echo esc_attr__( 'Select Month' ); ?></option>
    291291
    292292                        <?php
    293293                        /**
  • wp-includes/script-loader.php

     
    8686
    8787        $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", array(), false, 1 );
    8888        did_action( 'init' ) && $scripts->localize( 'quicktags', 'quicktagsL10n', array(
    89                 'closeAllOpenTags' => esc_attr(__('Close all open tags')),
    90                 'closeTags' => esc_attr(__('close tags')),
     89                'closeAllOpenTags' => esc_attr__('Close all open tags'),
     90                'closeTags' => esc_attr__('close tags'),
    9191                'enterURL' => __('Enter the URL'),
    9292                'enterImageURL' => __('Enter the URL of the image'),
    9393                'enterImageDescription' => __('Enter a description of the image'),
    9494                'fullscreen' => __('fullscreen'),
    95                 'toggleFullscreen' => esc_attr( __('Toggle fullscreen mode') ),
    96                 'textdirection' => esc_attr( __('text direction') ),
    97                 'toggleTextdirection' => esc_attr( __('Toggle Editor Text Direction') )
     95                'toggleFullscreen' => esc_attr__('Toggle fullscreen mode'),
     96                'textdirection' => esc_attr__('text direction'),
     97                'toggleTextdirection' => esc_attr__('Toggle Editor Text Direction')
    9898        ) );
    9999
    100100        $scripts->add( 'colorpicker', "/wp-includes/js/colorpicker$suffix.js", array('prototype'), '3517m' );