Make WordPress Core


Ignore:
Timestamp:
10/20/2011 03:04:46 PM (12 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/press-this.php

    r19001 r19028  
    432432
    433433            <div id="submitdiv" class="postbox">
    434                 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br /></div>
     434                <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
    435435                <h3 class="hndle"><?php _e('Press This') ?></h3>
    436436                <div class="inside">
     
    466466            <?php $tax = get_taxonomy( 'category' ); ?>
    467467            <div id="categorydiv" class="postbox">
    468                 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br /></div>
     468                <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
    469469                <h3 class="hndle"><?php _e('Categories') ?></h3>
    470470                <div class="inside">
     
    516516
    517517            <div id="tagsdiv-post_tag" class="postbox">
    518                 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br /></div>
     518                <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
    519519                <h3><span><?php _e('Tags'); ?></span></h3>
    520520                <div class="inside">
     
    593593            if ( current_user_can('upload_files') ) {
    594594                ?>
    595                 <a id="photo_button" title="<?php _e('Insert an Image'); ?>" href="#">
    596                 <img alt="<?php _e('Insert an Image'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-image.gif?ver=20100531' ) ); ?>"/></a>
     595                <a id="photo_button" title="<?php esc_attr_e('Insert an Image'); ?>" href="#">
     596                <img alt="<?php esc_attr_e('Insert an Image'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-image.gif?ver=20100531' ) ); ?>"/></a>
    597597                <?php
    598598            }
    599599            ?>
    600             <a id="video_button" title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-video.gif?ver=20100531' ) ); ?>"/></a>
     600            <a id="video_button" title="<?php esc_attr_e('Embed a Video'); ?>" href="#"><img alt="<?php esc_attr_e('Embed a Video'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-video.gif?ver=20100531' ) ); ?>"/></a>
    601601            <?php
    602602        }
     
    617617    <td><input type="text" id="this_photo_description" name="photo_description" class="tbtitle text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo esc_attr($title);?>"/></td>
    618618    </tr><tr>
    619     <td><input type="button" class="button" onclick="image_selector()" value="<?php _e('Insert Image'); ?>" /></td>
     619    <td><input type="button" class="button" onclick="image_selector()" value="<?php esc_attr_e('Insert Image'); ?>" /></td>
    620620    </tr></table>
    621621</div>
Note: See TracChangeset for help on using the changeset viewer.