1634 | | return get_post_format_strings(); |
| 1634 | |
| 1635 | $formats = get_post_format_strings(); |
| 1636 | |
| 1637 | # find out if they want a list of currently supports formats |
| 1638 | if ( isset( $args[3] ) && is_array( $args[3] ) ) { |
| 1639 | if ( $args[3]['show-supported'] ) { |
| 1640 | if ( current_theme_supports( 'post-formats' ) ) { |
| 1641 | $supported = get_theme_support( 'post-formats' ); |
| 1642 | |
| 1643 | $data['all'] = $formats; |
| 1644 | $data['supported'] = $supported[0]; |
| 1645 | |
| 1646 | $formats = $data; |
| 1647 | } |
| 1648 | } |
| 1649 | } |
| 1650 | |
| 1651 | return $formats; |