Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.