wp_rest_attachments_controller-prepare_items_query

method