Changeset 17056 for trunk/wp-admin/options-writing.php
- Timestamp:
- 12/19/2010 05:36:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-writing.php
r16980 r17056 57 57 </td> 58 58 </tr> 59 <?php 60 if ( current_theme_supports( 'post-formats' ) ) : 61 $post_formats = get_theme_support( 'post-formats' ); 62 if ( is_array( $post_formats[0] ) ) : 63 ?> 64 <tr valign="top"> 65 <th scope="row"><label for="default_post_format"><?php _e('Default Post Format') ?></label></th> 66 <td> 67 <select name="default_post_format" id="default_post_format"> 68 <option value="0"><?php _e('Standard'); ?></option> 69 <?php foreach ( $post_formats[0] as $format ): ?> 70 <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> 71 <?php endforeach; ?> 72 </select></label> 73 </td> 74 </tr> 75 <?php endif; endif; ?> 59 76 <tr valign="top"> 60 77 <th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>
Note: See TracChangeset
for help on using the changeset viewer.