Replace/Mute/Stop Search Query
I had a quick grep for SQL_CALC_FOUND_ROWS and found a few instances. I’m not sure which one is being called in your case, but here’s an interesting one from wp-includes/class-wp-query.php line 2904 onwards: $found_rows=””; if ( ! $q[‘no_found_rows’] && ! empty( $limits ) ) { $found_rows=”SQL_CALC_FOUND_ROWS”; } $old_request = “SELECT $found_rows $distinct $fields FROM {$wpdb->posts} … Read more