WordPress.org

Make WordPress Core

Changeset 16679


Ignore:
Timestamp:
12/02/2010 03:19:14 AM (10 years ago)
Author:
markjaquith
Message:

The name of the standard post format is now Standard (might offer ability to change Default). fixes #15582

Location:
trunk
Files:
2 edited

Legend:

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

    r16678 r16679  
    246246    ?>
    247247    <div id="post-formats-select">
    248         <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>
     248        <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>
    249249        <?php foreach ( $post_formats[0] as $format ) : ?>
    250250        <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>
  • trunk/wp-includes/post.php

    r16670 r16679  
    529529    if ( !empty($format) ) {
    530530        $format = sanitize_key($format);
    531         $empty_formats = array( 'post', 'default' );
     531        $empty_formats = array( 'post', 'standard' );
    532532        if ( in_array( $format, $empty_formats ) )
    533533            $format = '';
     
    50545054function get_post_format_strings() {
    50555055    $strings = array(
    5056         'default' => _x( 'Default', 'Post format' ), // Special case. any value that evals to false will be considered default
    5057         'aside'   => _x( 'Aside',   'Post format' ),
    5058         'chat'    => _x( 'Chat',    'Post format' ),
    5059         'gallery' => _x( 'Gallery', 'Post format' ),
    5060         'link'    => _x( 'Link',    'Post format' ),
    5061         'image'   => _x( 'Image',   'Post format' ),
    5062         'quote'   => _x( 'Quote',   'Post format' ),
    5063         'status'  => _x( 'Status',  'Post format' ),
    5064         'video'   => _x( 'Video',   'Post format' ),
    5065         'audio'   => _x( 'Audio',   'Post format' ),
     5056        'standard' => _x( 'Standard', 'Post format' ), // Special case. any value that evals to false will be considered standard
     5057        'aside'    => _x( 'Aside',    'Post format' ),
     5058        'chat'     => _x( 'Chat',     'Post format' ),
     5059        'gallery'  => _x( 'Gallery', 'Post format' ),
     5060        'link'     => _x( 'Link',     'Post format' ),
     5061        'image'    => _x( 'Image',    'Post format' ),
     5062        'quote'    => _x( 'Quote',    'Post format' ),
     5063        'status'   => _x( 'Status',   'Post format' ),
     5064        'video'    => _x( 'Video',    'Post format' ),
     5065        'audio'    => _x( 'Audio',    'Post format' ),
    50665066    );
    50675067    return $strings;
Note: See TracChangeset for help on using the changeset viewer.