Changeset 24089
- Timestamp:
- 04/25/2013 06:08:29 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-writing.php
r24002 r24089 80 80 </tr> 81 81 <?php 82 if ( current_theme_supports( 'post-formats' ) ) : 83 $post_formats = get_theme_support( 'post-formats' ); 84 if ( is_array( $post_formats[0] ) ) : 82 $post_formats = get_post_format_strings(); 83 unset( $post_formats['standard'] ); 85 84 ?> 86 85 <tr valign="top"> … … 88 87 <td> 89 88 <select name="default_post_format" id="default_post_format"> 90 <option value="0"><?php _e('Standard'); ?></option>91 <?php foreach ( $post_formats [0] as $format): ?>92 <option<?php selected( get_option( 'default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format )); ?></option>89 <option value="0"><?php echo get_post_format_string( 'standard' ); ?></option> 90 <?php foreach ( $post_formats as $format_slug => $format_name ): ?> 91 <option<?php selected( get_option( 'default_post_format' ), $format_slug ); ?> value="<?php echo esc_attr( $format_slug ); ?>"><?php echo esc_html( $format_name ); ?></option> 93 92 <?php endforeach; ?> 94 93 </select> 95 94 </td> 96 95 </tr> 97 <?php endif; endif; 98 96 <?php 99 97 if ( get_option( 'link_manager_enabled' ) ) : 100 98 ?>
Note: See TracChangeset
for help on using the changeset viewer.