Changeset 46088 for trunk/src/wp-admin/includes/class-custom-background.php
- Timestamp:
- 09/10/2019 07:22:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-background.php
r45932 r46088 585 585 exit; 586 586 } 587 587 588 $attachment_id = absint( $_POST['attachment_id'] ); 588 /** This filter is documented in wp-admin/includes/media.php */ 589 589 590 $sizes = array_keys( 591 /** This filter is documented in wp-admin/includes/media.php */ 590 592 apply_filters( 591 593 'image_size_names_choose', … … 598 600 ) 599 601 ); 600 $size = 'thumbnail'; 602 603 $size = 'thumbnail'; 601 604 if ( in_array( $_POST['size'], $sizes ) ) { 602 605 $size = esc_attr( $_POST['size'] ); … … 604 607 605 608 update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option( 'stylesheet' ) ); 609 606 610 $url = wp_get_attachment_image_src( $attachment_id, $size ); 607 611 $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' );
Note: See TracChangeset
for help on using the changeset viewer.