WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2011 06:28:31 PM (10 years ago)
Author:
ryan
Message:

Denote images that are headers or backgrounds in the media ui. Props ocean90. fixes #17291

File:
1 edited

Legend:

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

    r17771 r17793  
    346346        // Add the meta-data
    347347        wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
     348        update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );
    348349
    349350        set_theme_mod('background_image', esc_url($url));
Note: See TracChangeset for help on using the changeset viewer.