Changeset 16477 for trunk/wp-includes/post.php
- Timestamp:
- 11/19/2010 04:32:33 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r16469 r16477 5247 5247 function get_post_format_strings() { 5248 5248 $strings = array( 5249 ' 0' => _x( 'Default', 'Post format' ),5249 'default' => _x( 'Default', 'Post format' ), // Special case. any value that evals to false will be considered default 5250 5250 'aside' => _x( 'Aside', 'Post format' ), 5251 5251 'chat' => _x( 'Chat', 'Post format' ), … … 5270 5270 function get_post_format_string( $slug ) { 5271 5271 $strings = get_post_format_strings(); 5272 return ( isset( $strings[$slug] ) ) ? $strings[$slug] : ''; 5272 if ( !$slug ) 5273 return $strings['default']; 5274 else 5275 return ( isset( $strings[$slug] ) ) ? $strings[$slug] : ''; 5273 5276 } 5274 5277
Note: See TracChangeset
for help on using the changeset viewer.