Skip to content

Commit

Permalink
Issue WordPress#12795 - correction for phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jul 2, 2020
1 parent ad93ded commit 48c0b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ function gutenberg_posts_orderby( $orderby, $query ) {
global $wpdb;
if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
if ( 'menu_order' === $query->query['orderby'] ) {
$orderby = "$wpdb->posts.menu_order,$wpdb->posts.post_title,$wpdb->posts.id " . $query->query['order'] ;
$orderby = "$wpdb->posts.menu_order,$wpdb->posts.post_title,$wpdb->posts.id " . $query->query['order'];
}
}
return $orderby;
Expand Down

0 comments on commit 48c0b3e

Please sign in to comment.