WordPress.org

Make WordPress Core

Ticket #26160: meta-boxes.php.patch

File meta-boxes.php.patch, 2.0 KB (added by tsiger, 7 years ago)
  • wp-admin/includes/meta-boxes.php

     
    332332                if ( $post_format && !in_array( $post_format, $post_formats[0] ) )
    333333                        $post_formats[0][] = $post_format;
    334334        ?>
    335         <div id="post-formats-select">
    336                 <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" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
     335        <ul id="post-formats-select">
     336                <li class="post-format-item post-format-item-standard"><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" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label></li>
    337337                <?php foreach ( $post_formats[0] as $format ) : ?>
    338                 <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 ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
    339                 <?php endforeach; ?><br />
    340         </div>
     338                <li class="post-format-item post-format-item-<?php echo esc_attr( $format ); ?>"><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 ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label></li>
     339                <?php endforeach; ?>
     340        </ul>
    341341        <?php endif; endif;
    342342}
    343343