Consistently use get_post_format_string() to get Standard post format name with the correct context. props johnbillion. fixes #23503.
git-svn-id: http://core.svn.wordpress.org/trunk@24522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f3e96f0c60
commit
c3b321d0bd
|
@ -315,7 +315,7 @@ function post_format_meta_box( $post, $box ) {
|
|||
$post_formats[0][] = $post_format;
|
||||
?>
|
||||
<div id="post-formats-select">
|
||||
<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>
|
||||
<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>
|
||||
<?php foreach ( $post_formats[0] as $format ) : ?>
|
||||
<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>
|
||||
<?php endforeach; ?><br />
|
||||
|
|
|
@ -476,7 +476,7 @@ $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace(
|
|||
<p>
|
||||
<label for="post_format"><?php _e( 'Post Format:' ); ?>
|
||||
<select name="post_format" id="post_format">
|
||||
<option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option>
|
||||
<option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
|
||||
<?php foreach ( $post_formats[0] as $format ): ?>
|
||||
<option<?php selected( $default_format, $format ); ?> value="<?php echo esc_attr( $format ); ?>"> <?php echo esc_html( get_post_format_string( $format ) ); ?></option>
|
||||
<?php endforeach; ?>
|
||||
|
|
Loading…
Reference in New Issue