Changeset 21037 for trunk/wp-admin/custom-background.php
- Timestamp:
- 06/10/2012 12:32:19 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/custom-background.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r21009 r21037 384 384 update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) ); 385 385 386 set_theme_mod('background_image', esc_url ($url));386 set_theme_mod('background_image', esc_url_raw($url)); 387 387 388 388 $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); 389 set_theme_mod('background_image_thumb', esc_url ( $thumbnail[0] ) );389 set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) ); 390 390 391 391 do_action('wp_create_file_in_uploads', $file, $id); // For replication … … 426 426 $url = wp_get_attachment_image_src( $attachment_id, $size ); 427 427 $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' ); 428 set_theme_mod( 'background_image', esc_url ( $url[0] ) );429 set_theme_mod( 'background_image_thumb', esc_url ( $thumbnail[0] ) );428 set_theme_mod( 'background_image', esc_url_raw( $url[0] ) ); 429 set_theme_mod( 'background_image_thumb', esc_url_raw( $thumbnail[0] ) ); 430 430 exit; 431 431 }
Note: See TracChangeset
for help on using the changeset viewer.