Changeset 44206 for branches/5.0
- Timestamp:
- 12/15/2018 12:16:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r43862 r44206 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.