You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$sql = debugpress_db()->wpdb()->prepare( "SELECT table_schema, COUNT(*) as tables_count, SUM(data_length + index_length) AS data_size, SUM(data_free) AS free_space, SUM(table_rows) AS rows_count FROM information_schema.TABLES WHERE table_schema = %s GROUP BY table_schema", DB_NAME );
223
-
$raw = debugpress_db()->wpdb()->get_row( $sql );
222
+
$sql = debugpress_db()->wpdb()->prepare( "SELECT table_schema, COUNT(*) as tables_count, SUM(data_length + index_length) AS data_size, SUM(data_free) AS free_space, SUM(table_rows) AS rows_count FROM information_schema.TABLES WHERE table_schema = %s GROUP BY table_schema", DB_NAME );// phpcs:ignore WordPress.DB.PreparedSQL
@@ -263,8 +263,8 @@ public static function mysql_wordpress() : array {
263
263
$data = wp_cache_get( 'database', 'debugpress' );
264
264
265
265
if ( $data === false ) {
266
-
$sql = debugpress_db()->wpdb()->prepare( "SELECT table_schema, COUNT(*) as tables_count, SUM(data_length + index_length) AS data_size, SUM(data_free) AS free_space, SUM(table_rows) AS rows_count FROM information_schema.TABLES WHERE table_schema = %s AND table_name like '" . debugpress_db()->wpdb()->base_prefix . "%' GROUP BY table_schema", DB_NAME );
267
-
$raw = debugpress_db()->wpdb()->get_row( $sql );
266
+
$sql = debugpress_db()->wpdb()->prepare( "SELECT table_schema, COUNT(*) as tables_count, SUM(data_length + index_length) AS data_size, SUM(data_free) AS free_space, SUM(table_rows) AS rows_count FROM information_schema.TABLES WHERE table_schema = %s AND table_name like '" . debugpress_db()->wpdb()->base_prefix . "%' GROUP BY table_schema", DB_NAME );// phpcs:ignore WordPress.DB.PreparedSQL
0 commit comments