WordPress.org

Make WordPress Core

Changeset 17758


Ignore:
Timestamp:
04/28/11 23:14:08 (3 years ago)
Author:
ryan
Message:

Set meta when upload matches dimensions. see #17240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r17757 r17758  
    656656            // Add the meta-data 
    657657            wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); 
     658            update_post_meta( $id, '_wp_attachment_is_custom_header', get_option('stylesheet' ) ); 
    658659 
    659660            set_theme_mod('header_image', esc_url($url)); 
Note: See TracChangeset for help on using the changeset viewer.