Skip to content

Commit dfcab84

Browse files
Apply suggestion from @TimothyBJacobs
combine isset Co-authored-by: Timothy Jacobs <[email protected]>
1 parent 98fd52b commit dfcab84

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
@@ -102,7 +102,7 @@ protected function prepare_items_query( $prepared_args = array(), $request = nul
102102
}
103103

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

0 commit comments

Comments
 (0)