Changeset 23416 for trunk/wp-admin/custom-background.php
- Timestamp:
- 02/14/2013 10:51:06 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/custom-background.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r22812 r23416 379 379 // Add the meta-data 380 380 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); 381 update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );381 wp_update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) ); 382 382 383 383 set_theme_mod('background_image', esc_url_raw($url)); … … 416 416 $size = esc_attr( $_POST['size'] ); 417 417 418 update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );418 wp_update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) ); 419 419 $url = wp_get_attachment_image_src( $attachment_id, $size ); 420 420 $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' );
Note: See TracChangeset
for help on using the changeset viewer.