Skip to content

Commit fb08ace

Browse files
Update src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
Co-authored-by: Andrew Serong <[email protected]>
1 parent 0800c1d commit fb08ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function prepare_items_query( $prepared_args = array(), $request = nul
101101
add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
102102
}
103103

104-
// Map to proper WP_Query orderby param - this needs to happen AFTER parent class.
104+
// Map to proper WP_Query orderby param.
105105
if ( isset( $query_args['orderby'], $request['orderby'] ) ) {
106106
$orderby_mappings = array(
107107
'mime_type' => 'post_mime_type',

0 commit comments

Comments
 (0)