WordPress.org

Make WordPress Core

Ticket #24046: 24046.5.diff

File 24046.5.diff, 1.6 KB (added by wonderboymusic, 5 years ago)
  • wp-admin/edit-form-advanced.php

    diff --git wp-admin/edit-form-advanced.php wp-admin/edit-form-advanced.php
    index 09e9706..f563a42 100644
    wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
    410410<div id="poststuff">
    411411<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
    412412<div id="post-body-content"<?php echo $format_class; ?>>
     413<?php if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'enable_post_format_ui', true, $post ) ): ?>
     414<div class="post-format-change"><span class="icon <?php echo esc_attr( $post_format ); ?>"></span> <span class="post-format-description"><?php echo $all_post_formats[$post_format]['description']; ?></span> <a href="#"><?php _e('Change format'); ?></a></div>
     415<?php endif; ?>
    413416<?php if ( post_type_supports($post_type, 'title') ) { ?>
    414417<div id="titlediv">
    415418<div id="titlewrap">
  • wp-admin/includes/post-formats.php

    diff --git wp-admin/includes/post-formats.php wp-admin/includes/post-formats.php
    index ac4c749..b21bf52 100644
    global $wp_embed; 
    44$format_meta = get_post_format_meta( $post_ID );
    55
    66?>
    7 <div class="post-format-change"><span class="icon <?php echo esc_attr( $post_format ); ?>"></span> <span class="post-format-description"><?php echo $all_post_formats[$post_format]['description']; ?></span> <a href="#"><?php _e('Change format'); ?></a></div>
    87<div class="post-formats-fields">
    98
    109        <input type="hidden" name="post_format" id="post_format" value="<?php echo esc_attr( $post_format ); ?>" />