Changeset 53183 for trunk/src/wp-admin/includes/class-custom-background.php
- Timestamp:
- 04/14/2022 03:13:45 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-background.php
r52978 r53183 511 511 $filename = wp_basename( $file ); 512 512 513 // Construct the object array.514 $ object = array(513 // Construct the attachment array. 514 $attachment = array( 515 515 'post_title' => $filename, 516 516 'post_content' => $url, … … 521 521 522 522 // Save the data. 523 $id = wp_insert_attachment( $ object, $file );523 $id = wp_insert_attachment( $attachment, $file ); 524 524 525 525 // Add the metadata.
Note: See TracChangeset
for help on using the changeset viewer.