The name of the standard post format is now Standard (might offer ability to change Default). fixes #15582
git-svn-id: http://svn.automattic.com/wordpress/trunk@16679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ff7ac5a045
commit
e7140d23cb
|
@ -245,7 +245,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"><?php _e('Default'); ?></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"><?php _e('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 ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
|
||||
<?php endforeach; ?><br />
|
||||
|
|
|
@ -528,7 +528,7 @@ function set_post_format( $post, $format ) {
|
|||
|
||||
if ( !empty($format) ) {
|
||||
$format = sanitize_key($format);
|
||||
$empty_formats = array( 'post', 'default' );
|
||||
$empty_formats = array( 'post', 'standard' );
|
||||
if ( in_array( $format, $empty_formats ) )
|
||||
$format = '';
|
||||
else
|
||||
|
@ -5053,16 +5053,16 @@ function wp_check_post_hierarchy_for_loops( $post_parent, $post_ID ) {
|
|||
*/
|
||||
function get_post_format_strings() {
|
||||
$strings = array(
|
||||
'default' => _x( 'Default', 'Post format' ), // Special case. any value that evals to false will be considered default
|
||||
'aside' => _x( 'Aside', 'Post format' ),
|
||||
'chat' => _x( 'Chat', 'Post format' ),
|
||||
'gallery' => _x( 'Gallery', 'Post format' ),
|
||||
'link' => _x( 'Link', 'Post format' ),
|
||||
'image' => _x( 'Image', 'Post format' ),
|
||||
'quote' => _x( 'Quote', 'Post format' ),
|
||||
'status' => _x( 'Status', 'Post format' ),
|
||||
'video' => _x( 'Video', 'Post format' ),
|
||||
'audio' => _x( 'Audio', 'Post format' ),
|
||||
'standard' => _x( 'Standard', 'Post format' ), // Special case. any value that evals to false will be considered standard
|
||||
'aside' => _x( 'Aside', 'Post format' ),
|
||||
'chat' => _x( 'Chat', 'Post format' ),
|
||||
'gallery' => _x( 'Gallery', 'Post format' ),
|
||||
'link' => _x( 'Link', 'Post format' ),
|
||||
'image' => _x( 'Image', 'Post format' ),
|
||||
'quote' => _x( 'Quote', 'Post format' ),
|
||||
'status' => _x( 'Status', 'Post format' ),
|
||||
'video' => _x( 'Video', 'Post format' ),
|
||||
'audio' => _x( 'Audio', 'Post format' ),
|
||||
);
|
||||
return $strings;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue