Changeset 16198 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 11/05/2010 03:04:13 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r16196 r16198 159 159 $post_formats = get_theme_support( 'post-formats' ); 160 160 161 $post_formats_display = get_post_format_strings();162 163 161 if ( is_array( $post_formats[0] ) ) : 164 162 $post_format = get_post_format( $post->ID ); 165 163 if ( !$post_format ) 166 164 $post_format = '0'; 167 $post_format_display = $post_formats_display[$post_format];165 $post_format_display = get_post_format_string( $post_format ); 168 166 ?> 169 167 <div class="misc-pub-section" id="post-formats"><label for="post-format"><?php _e( 'Format:' ); ?></label> … … 176 174 <option value="0" <?php selected( $post_format, '0' ); ?>><?php _e('Default'); ?></option> 177 175 <?php foreach ( $post_formats[0] as $format ) : ?> 178 <option value="<?php echo esc_attr( $format ); ?>" <?php selected( $post_format, $format ); ?>><?php echo esc_html( $post_formats_display[$format]); ?></option>176 <option value="<?php echo esc_attr( $format ); ?>" <?php selected( $post_format, $format ); ?>><?php echo esc_html( get_post_format_string( $format ) ); ?></option> 179 177 <?php endforeach; ?> 180 178 </select>
Note: See TracChangeset
for help on using the changeset viewer.