Changeset 23554 for trunk/wp-admin/custom-background.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r23416 r23554 379 379 // Add the meta-data 380 380 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); 381 wp_update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );381 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 wp_update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );418 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.