WordPress.org

Make WordPress Core

Changeset 24522


Ignore:
Timestamp:
06/27/13 06:56:45 (10 months ago)
Author:
SergeyBiryukov
Message:

Consistently use get_post_format_string() to get Standard post format name with the correct context. props johnbillion. fixes #23503.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r24429 r24522  
    316316    ?> 
    317317    <div id="post-formats-select"> 
    318         <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php _e('Standard'); ?></label> 
     318        <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label> 
    319319        <?php foreach ( $post_formats[0] as $format ) : ?> 
    320320        <br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label> 
  • trunk/wp-admin/press-this.php

    r24207 r24522  
    477477                        <label for="post_format"><?php _e( 'Post Format:' ); ?> 
    478478                        <select name="post_format" id="post_format"> 
    479                             <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option> 
     479                            <option value="0"><?php echo get_post_format_string( 'standard' ); ?></option> 
    480480                        <?php foreach ( $post_formats[0] as $format ): ?> 
    481481                            <option<?php selected( $default_format, $format ); ?> value="<?php echo esc_attr( $format ); ?>"> <?php echo esc_html( get_post_format_string( $format ) ); ?></option> 
Note: See TracChangeset for help on using the changeset viewer.