We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2fbf7 commit 7503671Copy full SHA for 7503671
classes/Visualizer/Source/Query.php
@@ -65,6 +65,11 @@ public function fetch( $as_html = false ) {
65
return false;
66
}
67
68
+ // impose a limit if no limit clause is provided.
69
+ if ( strpos( strtolower( $this->_query ), ' limit ' ) === false ) {
70
+ $this->_query .= ' LIMIT ' . apply_filters( 'visualizer_sql_query_limit', 300 );
71
+ }
72
+
73
global $wpdb;
74
$wpdb->hide_errors();
75
// @codingStandardsIgnoreStart
0 commit comments