equal
deleted
inserted
replaced
305 |
305 |
306 $query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query"; |
306 $query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query"; |
307 $query .= " $exclusions $inclusions $search"; |
307 $query .= " $exclusions $inclusions $search"; |
308 $query .= " ORDER BY $orderby $order"; |
308 $query .= " ORDER BY $orderby $order"; |
309 if ( -1 != $parsed_args['limit'] ) { |
309 if ( -1 != $parsed_args['limit'] ) { |
310 $query .= ' LIMIT ' . $parsed_args['limit']; |
310 $query .= ' LIMIT ' . absint( $parsed_args['limit'] ); |
311 } |
311 } |
312 |
312 |
313 $results = $wpdb->get_results( $query ); |
313 $results = $wpdb->get_results( $query ); |
314 |
314 |
315 if ( 'rand()' !== $orderby ) { |
315 if ( 'rand()' !== $orderby ) { |