get_post_format_strings

The timeline below displays how wordpress function get_post_format_strings has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Returns an array of post format slugs to their translated and pretty display versions
 *
 * @since 3.1.0
 *
 * @return string[] Array of post format labels keyed by format slug.
 */
function get_post_format_strings()
{
    $strings = array(
        '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;
}

WordPress Version: 3.7

/**
 * Returns an array of post format slugs to their translated and pretty display versions
 *
 * @since 3.1.0
 *
 * @return array The array of translated post format names.
 */
function get_post_format_strings()
{
    $strings = array(
        '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;
}