Make WordPress Core


Ignore:
Timestamp:
05/23/2012 02:03:52 AM (13 years ago)
Author:
azaozz
Message:

About screen: make the text translatable again and escape <img src=admin_url(), see #20423

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/about.php

    r20843 r20847  
    3535
    3636<div class="changelog">
    37     <h3><?php echo ( 'Live Theme Previews' ); ?></h3>
     37    <h3><?php _e( 'Live Theme Previews' ); ?></h3>
    3838
    3939    <div class="feature-section images-stagger-right">
    40         <img src="<?php echo admin_url( 'images/screenshots/theme-customizer.png' ); ?>" class="image-50" />
    41         <h4><?php echo ( 'Try on New Themes' ); ?></h4>
    42         <p><?php echo ( 'Gone are the days of rushing to update your header, background, and the like as soon as you activate a new theme. You can now customize these options <strong>before</strong> activating a new theme. Note: This feature is available for installed themes only.' ); ?></p>
     40        <img src="<?php echo esc_url( admin_url( 'images/screenshots/theme-customizer.png' ) ); ?>" class="image-50" />
     41        <h4><?php _e( 'Try on New Themes' ); ?></h4>
     42        <p><?php _e( 'Gone are the days of rushing to update your header, background, and the like as soon as you activate a new theme. You can now customize these options <strong>before</strong> activating a new theme. Note: This feature is available for installed themes only.' ); ?></p>
    4343
    44         <h4><?php echo ( 'Customize Current Theme' ); ?></h4>
    45         <p><?php echo ( 'Satisfy your curiosity and try on a fresh coat of paint --- you can also use the live preview mode to customize your current theme. Look for the Customize link on the Themes screen.' ); ?></p>
     44        <h4><?php _e( 'Customize Current Theme' ); ?></h4>
     45        <p><?php _e( 'Satisfy your curiosity and try on a fresh coat of paint --- you can also use the live preview mode to customize your current theme. Look for the Customize link on the Themes screen.' ); ?></p>
    4646    </div>
    4747</div>
    4848
    4949<div class="changelog">
    50     <h3><?php echo ( 'Custom Headers' ); ?></h3>
     50    <h3><?php _e( 'Custom Headers' ); ?></h3>
    5151   
    5252    <div class="feature-section">
    53         <h4><?php echo ( 'Flexible Sizes' ); ?></h4>
    54         <p><?php echo ( 'You can decide for yourself how tall or wide your custom header image should be. From now on, themes will provide a recommended image size for custom headers rather than a fixed requirement. Note: this feature requires <a href="http://codex.wordpress.org/Custom_Headers">theme support</a>.' ); ?></p>
    55         <img src="<?php echo admin_url( 'images/screenshots/flex-header-1.png' ); ?>" class="image-30" />
    56         <img src="<?php echo admin_url( 'images/screenshots/flex-header-2.png' ); ?>" class="image-30" />
    57         <img src="<?php echo admin_url( 'images/screenshots/flex-header-3.png' ); ?>" class="image-30" />
     53        <h4><?php _e( 'Flexible Sizes' ); ?></h4>
     54        <p><?php _e( 'You can decide for yourself how tall or wide your custom header image should be. From now on, themes will provide a recommended image size for custom headers rather than a fixed requirement. Note: this feature requires <a href="http://codex.wordpress.org/Custom_Headers">theme support</a>.' ); ?></p>
     55        <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-1.png' ) ); ?>" class="image-30" />
     56        <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-2.png' ) ); ?>" class="image-30" />
     57        <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-3.png' ) ); ?>" class="image-30" />
    5858    </div>
    5959
    6060    <div class="feature-section images-stagger-right">
    61         <img src="<?php echo admin_url( 'images/screenshots/flex-header-media-library.png' ); ?>" class="image-50" />
    62         <h4><?php echo ( 'Choose from Media Library' ); ?></h4>
    63         <p><?php echo ( 'Tired of re-uploading the same custom header image every time you check out a new theme? Now you can choose header images from your media library for easier customization.' ); ?></p>
     61        <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-media-library.png' ) ); ?>" class="image-50" />
     62        <h4><?php _e( 'Choose from Media Library' ); ?></h4>
     63        <p><?php _e( 'Tired of re-uploading the same custom header image every time you check out a new theme? Now you can choose header images from your media library for easier customization.' ); ?></p>
    6464    </div>
    6565</div>
    6666
    6767<div class="changelog">
    68     <h3><?php echo ( 'Better Captions' ); ?></h3>
     68    <h3><?php _e( 'Better Captions' ); ?></h3>
    6969
    7070    <div class="feature-section images-stagger-right">
    71         <img src="<?php echo admin_url( 'images/screenshots/captions-1.png' ); ?>" class="image-30" />
    72         <img src="<?php echo admin_url( 'images/screenshots/captions-2.png' ); ?>" class="image-30" />
    73         <h4><?php echo ( 'HTML Support' ); ?></h4>
    74         <p><?php echo ( 'Basic HTML support has been added to the caption field in the image uploader. This allows you to add links --- great for photo credits or licensing details --- and basic formatting such as bold and italicized text.' ); ?></p>
     71        <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-1.png' ) ); ?>" class="image-30" />
     72        <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-2.png' ) ); ?>" class="image-30" />
     73        <h4><?php _e( 'HTML Support' ); ?></h4>
     74        <p><?php _e( 'Basic HTML support has been added to the caption field in the image uploader. This allows you to add links --- great for photo credits or licensing details --- and basic formatting such as bold and italicized text.' ); ?></p>
    7575    </div>
    7676</div>
    7777
    7878<div class="changelog">
    79     <h3><?php echo ( 'Under the Hood' ); ?></h3>
     79    <h3><?php _e( 'Under the Hood' ); ?></h3>
    8080
    8181    <div class="feature-section three-col">
    8282        <div>
    83             <h4><?php echo ( 'Themes API' ); ?></h4>
    84             <p><?php echo ( 'WP_Theme, wp_get_themes(), wp_get_theme(). Faster, uses less memory, make uses of persistent caching.' ); ?></p>
     83            <h4><?php _e( 'Themes API' ); ?></h4>
     84            <p><?php _e( 'WP_Theme, wp_get_themes(), wp_get_theme(). Faster, uses less memory, make uses of persistent caching.' ); ?></p>
    8585           
    86             <h4><?php echo ( 'Faster Main Query' ); ?></h4>
    87             <p><?php echo ( 'Post query optimized to avoid table scans.' ); ?></p>
     86            <h4><?php _e( 'Faster Main Query' ); ?></h4>
     87            <p><?php _e( 'Post query optimized to avoid table scans.' ); ?></p>
    8888        </div>
    8989        <div>
    90             <h4><?php echo ( 'Custom Header and Backound API' ); ?></h4>
    91             <p><?php  echo ( 'Custom header and background API relocated into the theme support API.' ); ?></p>
     90            <h4><?php _e( 'Custom Header and Backound API' ); ?></h4>
     91            <p><?php  _e( 'Custom header and background API relocated into the theme support API.' ); ?></p>
    9292           
    93             <h4><?php echo ( 'Faster I18N' ); ?></h4>
    94             <p><?php echo ( 'The number of strings loaded on the front end were greatly reduced, resulting in faster front page load times for I18N users.' ); ?></p>
     93            <h4><?php _e( 'Faster I18N' ); ?></h4>
     94            <p><?php _e( 'The number of strings loaded on the front end were greatly reduced, resulting in faster front page load times for I18N users.' ); ?></p>
    9595        </div>
    9696        <div class="last-feature">
    97             <h4><?php echo ( 'WP_Screen API' ); ?></h4>
    98             <p><?php echo ( 'More methods, more convenience!' ); ?></p>
     97            <h4><?php _e( 'WP_Screen API' ); ?></h4>
     98            <p><?php _e( 'More methods, more convenience!' ); ?></p>
    9999           
    100             <h4><?php echo ( 'External Libraries' ); ?></h4>
    101             <p><?php echo ( 'jQuery, jQuery UI, TinyMCE, Plupload, PHPMailer, SimplePie, and other libraries were updated. jQuery UI Touch Punch was introduced.' ); ?></p>
     100            <h4><?php _e( 'External Libraries' ); ?></h4>
     101            <p><?php _e( 'jQuery, jQuery UI, TinyMCE, Plupload, PHPMailer, SimplePie, and other libraries were updated. jQuery UI Touch Punch was introduced.' ); ?></p>
    102102        </div>
    103103    </div>
Note: See TracChangeset for help on using the changeset viewer.