Make WordPress Core

Ticket #23900: 23900.diff

File 23900.diff, 965 bytes (added by wonderboymusic, 13 years ago)
  • wp-admin/includes/post-formats.php

    diff --git wp-admin/includes/post-formats.php wp-admin/includes/post-formats.php
    index be0d458..5f952ca 100644
    $format_meta = get_post_format_meta( $post_ID ); 
    3636                                ?>
    3737                        </a>
    3838                </div>
    39                 <label for="_wp_format_image" class="screen-reader-text"><?php _e( 'Image URL' ); ?>:</label>
    40                 <input id="wp_format_image" type="hidden" name="_wp_format_image" value="<?php echo esc_url( $format_meta['image'] ); ?>" placeholder="<?php esc_attr_e( 'Image URL' ); ?>" class="widefat" />
     39                <label for="_wp_format_image" class="screen-reader-text"><?php _e( 'Attachment ID' ); ?>:</label>
     40                <input id="wp_format_image" type="hidden" name="_wp_format_image" value="<?php if ( $image ) esc_attr_e( $format_meta['image'] ); ?>" placeholder="<?php esc_attr_e( 'Attachment ID' ); ?>" class="widefat" />
    4141        </div>
    4242
    4343        <div class="field wp-format-link wp-format-quote wp-format-image">