Make WordPress Core


Ignore:
Timestamp:
11/12/2010 04:05:33 AM (14 years ago)
Author:
markjaquith
Message:

Switch to radio boxes for Post Format picking. Saves a click. Maybe we should do this with Post Status as well. see #14746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r16198 r16314  
    171171<div id="post-formats-select" class="hide-if-js">
    172172<input type="hidden" id="old-post-format" value="<?php echo esc_attr( $post_format ); ?>" />
    173 <select id="post-format" name="post_format">
    174     <option value="0" <?php selected( $post_format, '0' ); ?>><?php _e('Default'); ?></option>
     173    <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0"><?php _e('Default'); ?></label>
    175174    <?php foreach ( $post_formats[0] as $format ) : ?>
    176     <option value="<?php echo esc_attr( $format ); ?>" <?php selected( $post_format, $format ); ?>><?php echo esc_html( get_post_format_string( $format ) ); ?></option>
    177     <?php endforeach; ?>
    178 </select>
     175    <br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
     176    <?php endforeach; ?><br />
     177    <p>
    179178     <a href="#post-formats" class="save-post-format hide-if-no-js button"><?php _e('OK'); ?></a>
    180179     <a href="#post-formats" class="cancel-post-format hide-if-no-js"><?php _e('Cancel'); ?></a>
     180    </p>
    181181</div>
    182182</div><?php // /misc-pub-section ?>
Note: See TracChangeset for help on using the changeset viewer.