Make WordPress Core


Ignore:
Timestamp:
10/20/2011 03:04:46 PM (15 years ago)
Author:
nacin
Message:

Translated strings in attributes require esc_attr(). s/_e/esc_attr_e/g

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-new.php

    r18750 r19028  
    118118                        <td>
    119119                        <?php if ( is_subdomain_install() ) { ?>
    120                                 <input name="blog[domain]" type="text" class="regular-text" title="<?php _e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?>
     120                                <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?>
    121121                        <?php } else {
    122                                 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php _e( 'Domain' ) ?>"/>
     122                                echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php esc_attr_e( 'Domain' ) ?>"/>
    123123                        <?php }
    124124                        echo '<p>' . __( 'Only the characters a-z and 0-9 recommended.' ) . '</p>';
     
    128128                <tr class="form-field form-required">
    129129                        <th scope="row"><?php _e( 'Site Title' ) ?></th>
    130                         <td><input name="blog[title]" type="text" class="regular-text" title="<?php _e( 'Title' ) ?>"/></td>
     130                        <td><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></td>
    131131                </tr>
    132132                <tr class="form-field form-required">
    133133                        <th scope="row"><?php _e( 'Admin Email' ) ?></th>
    134                         <td><input name="blog[email]" type="text" class="regular-text" title="<?php _e( 'Email' ) ?>"/></td>
     134                        <td><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></td>
    135135                </tr>
    136136                <tr class="form-field">
Note: See TracChangeset for help on using the changeset viewer.