Changeset 54891 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r54524 r54891 767 767 // Ensure empty details is an empty object. 768 768 if ( empty( $data['media_details'] ) ) { 769 $data['media_details'] = new stdClass ;769 $data['media_details'] = new stdClass(); 770 770 } elseif ( ! empty( $data['media_details']['sizes'] ) ) { 771 771 … … 798 798 } 799 799 } else { 800 $data['media_details']['sizes'] = new stdClass ;800 $data['media_details']['sizes'] = new stdClass(); 801 801 } 802 802 }
Note: See TracChangeset
for help on using the changeset viewer.