Changeset 47295 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 02/17/2020 03:11:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r47261 r47295 186 186 } 187 187 188 // Include admin functionto get access to wp_generate_attachment_metadata().188 // Include media functions to get access to wp_generate_attachment_metadata(). 189 189 require_once ABSPATH . 'wp-admin/includes/media.php'; 190 190 … … 718 718 $type = array_shift( $headers['content_type'] ); 719 719 720 / ** Include admin functions to get access to wp_tempnam() and wp_handle_sideload(). */720 // Include filesystem functions to get access to wp_tempnam() and wp_handle_sideload(). 721 721 require_once ABSPATH . 'wp-admin/includes/file.php'; 722 722 … … 916 916 } 917 917 918 / ** Include admin function to get access to wp_handle_upload(). */918 // Include filesystem functions to get access to wp_handle_upload(). 919 919 require_once ABSPATH . 'wp-admin/includes/file.php'; 920 920 … … 998 998 } 999 999 1000 // Include admin functionto get access to upload_is_user_over_quota().1000 // Include multisite admin functions to get access to upload_is_user_over_quota(). 1001 1001 require_once ABSPATH . 'wp-admin/includes/ms.php'; 1002 1002
Note: See TracChangeset
for help on using the changeset viewer.