WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/04/2010 06:33:50 PM (10 years ago)
Author:
markjaquith
Message:

Translate and prettify post formats for display. Also, filterable by themes/plugins to add new ones. see #14746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16121 r16191  
    52135213}
    52145214
     5215/**
     5216 * Returns an array of post format slugs to their translated and pretty display versions
     5217 *
     5218 * @return array The array of translations
     5219 */
     5220function get_post_format_strings() {
     5221    $strings = array(
     5222        '0'       => _x( 'Default', 'Post format' ),
     5223        'aside'   => _x( 'Aside',   'Post format' ),
     5224        'chat'    => _x( 'Chat',    'Post format' ),
     5225        'gallery' => _x( 'Gallery', 'Post format' ),
     5226        'link'    => _x( 'Link',    'Post format' ),
     5227        'image'   => _x( 'Image',   'Post format' ),
     5228        'quote'   => _x( 'Quote',   'Post format' ),
     5229        'status'  => _x( 'Status',  'Post format' ),
     5230        'video'   => _x( 'Video',   'Post format' )
     5231    );
     5232    return apply_filters( 'post_format_strings', $strings );
     5233}
     5234
    52155235?>
Note: See TracChangeset for help on using the changeset viewer.