get_post_format_string

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

WordPress Version: 4.1

/**
 * Returns a pretty, translated version of a post format slug
 *
 * @since 3.1.0
 *
 * @param string $slug A post format slug.
 * @return string The translated post format name.
 */
function get_post_format_string($slug)
{
    $strings = get_post_format_strings();
    if (!$slug) {
        return $strings['standard'];
    } else {
        return isset($strings[$slug]) ? $strings[$slug] : '';
    }
}

WordPress Version: 3.7

/**
 * Returns a pretty, translated version of a post format slug
 *
 * @since 3.1.0
 *
 * @uses get_post_format_strings()
 *
 * @param string $slug A post format slug.
 * @return string The translated post format name.
 */
function get_post_format_string($slug)
{
    $strings = get_post_format_strings();
    if (!$slug) {
        return $strings['standard'];
    } else {
        return isset($strings[$slug]) ? $strings[$slug] : '';
    }
}