Changeset 44309
- Timestamp:
- 12/18/2018 11:07:34 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 44206
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r44225 r44309 175 175 // Include admin function to get access to wp_generate_attachment_metadata(). 176 176 require_once ABSPATH . 'wp-admin/includes/media.php'; 177 require_once ABSPATH . 'wp-admin/includes/image.php';178 177 179 178 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
Note: See TracChangeset
for help on using the changeset viewer.