Make WordPress Core

Changeset 32333


Ignore:
Timestamp:
05/03/2015 04:17:06 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Replace echo __() with _e().

props marsjaninzmarsa.
fixes #32239.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-header.php

    r32116 r32333  
    268268            echo '<div class="random-header">';
    269269            echo '<label><input name="default-header" type="radio" value="random-' . $type . '-image"' . checked( is_random_header_image( $type ), true, false ) . ' />';
    270             echo __( '<strong>Random:</strong> Show a different image on each page.' );
     270            _e( '<strong>Random:</strong> Show a different image on each page.' );
    271271            echo '</label>';
    272272            echo '</div>';
  • trunk/src/wp-admin/customize.php

    r31984 r32333  
    151151                </div>
    152152                <div class="accordion-section-content"><?php
    153                     echo __( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' );
     153                    _e( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' );
    154154                ?></div>
    155155            </div>
  • trunk/src/wp-admin/edit-comments.php

    r32116 r32333  
    150150    );
    151151else
    152     echo __('Comments');
     152    _e( 'Comments' );
    153153
    154154if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r32329 r32333  
    11171117                    <?php
    11181118                    /* translators: Between password field and private checkbox on post quick edit interface */
    1119                     echo __( '&ndash;OR&ndash;' );
     1119                    _e( '&ndash;OR&ndash;' );
    11201120                    ?>
    11211121                </em>
    11221122                <label class="alignleft inline-edit-private">
    11231123                    <input type="checkbox" name="keep_private" value="private" />
    1124                     <span class="checkbox-title"><?php echo __( 'Private' ); ?></span>
     1124                    <span class="checkbox-title"><?php _e( 'Private' ); ?></span>
    11251125                </label>
    11261126            </div>
  • trunk/src/wp-admin/network/users.php

    r32152 r32333  
    8787                            <?php _e( 'Delete all content.' ); ?></label></li>
    8888                            <li><label><input type="radio" id="delete_option1" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID ?>]" value="reassign" />
    89                             <?php echo __( 'Attribute all content to:' ) . "</label>\n" . $user_dropdown; ?></li>
     89                            <?php _e( 'Attribute all content to:' ) . "</label>\n" . $user_dropdown; ?></li>
    9090                        </ul>
    9191                        <?php
  • trunk/src/wp-includes/comment-template.php

    r32259 r32333  
    13051305
    13061306    if ( post_password_required() ) {
    1307         echo __('Enter your password to view comments.');
     1307        _e( 'Enter your password to view comments.' );
    13081308        return;
    13091309    }
Note: See TracChangeset for help on using the changeset viewer.