Changeset 47296 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 02/17/2020 03:22:43 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r47295 r47296 186 186 } 187 187 188 // Include media functions to get access to wp_generate_attachment_metadata().188 // Include media and image functions to get access to wp_generate_attachment_metadata(). 189 189 require_once ABSPATH . 'wp-admin/includes/media.php'; 190 require_once ABSPATH . 'wp-admin/includes/image.php'; 190 191 191 192 // Post-process the upload (create image sub-sizes, make PDF thumbnalis, etc.) and insert attachment meta.
Note: See TracChangeset
for help on using the changeset viewer.