WordPress.org

Make WordPress Core

Ticket #52871: 52871.patch

File 52871.patch, 868 bytes (added by Laxman Prajapati, 6 months ago)

Created patch.

  • src/wp-admin/options-writing.php

    diff --git a/src/wp-admin/options-writing.php b/src/wp-admin/options-writing.php
    index 5944124bce..b77f805175 100644
    a b unset( $post_formats['standard'] ); 
    100100        <select name="default_post_format" id="default_post_format">
    101101                <option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
    102102<?php foreach ( $post_formats as $format_slug => $format_name ) : ?>
    103                 <option<?php selected( get_option( 'default_post_format' ), $format_slug ); ?> value="<?php echo esc_attr( $format_slug ); ?>"><?php echo esc_html( $format_name ); ?></option>
     103                <option <?php selected( get_option( 'default_post_format' ), $format_slug ); ?> value="<?php echo esc_attr( $format_slug ); ?>"><?php echo esc_html( $format_name ); ?></option>
    104104<?php endforeach; ?>
    105105        </select>
    106106</td>