WordPress.org

Make WordPress Core

Ticket #23503: 23503.patch

File 23503.patch, 2.4 KB (added by SergeyBiryukov, 17 months ago)
  • wp-admin/edit-form-advanced.php

     
    332332<?php 
    333333if ( post_type_supports( $post_type, 'post-formats' ) ) { 
    334334        $all_post_formats = get_post_format_strings(); 
     335        $all_post_formats['standard'] = _x( 'Standard', 'Post format tab' ); 
    335336 
    336337        echo '<h2 class="nav-tab-wrapper post-format-select">'; 
    337338 
  • wp-admin/includes/meta-boxes.php

     
    315315                        $post_formats[0][] = $post_format; 
    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"><?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"><?php _ex( 'Standard', 'Post format' ); ?></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 ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label> 
    321321                <?php endforeach; ?><br /> 
  • wp-admin/options-writing.php

     
    8787<th scope="row"><label for="default_post_format"><?php _e('Default Post Format') ?></label></th> 
    8888<td> 
    8989        <select name="default_post_format" id="default_post_format"> 
    90                 <option value="0"><?php _e('Standard'); ?></option> 
     90                <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option> 
    9191<?php foreach ( $post_formats[0] as $format ): ?> 
    9292                <option<?php selected( get_option('default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> 
    9393<?php endforeach; ?>