PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.84
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.84
5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 5.5.41 5.5.42 All 160 releases
← All changes | WPDataAccess/Plugin_Table_Models/WPDA_App_Apps_Model.php +10 -10 5.5.765.5.84 View file →
@@ -10,9 +10,9 @@
10 10
11 11 public static function select_all( $app_id ) {
12 12
13 13 global $wpdb;
14 - return $wpdb->get_results(
14 + return $wpdb->get_results( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- plugin table
15 15 $wpdb->prepare(
16 16 'SELECT * FROM `%1s` WHERE app_id = %d order by seq_nr', // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders
17 17 array(
18 18 WPDA::remove_backticks( self::get_base_table_name() ),
@@ -19,9 +19,9 @@
19 19 $app_id,
20 20 )
21 21 ), // db call ok; no-cache ok.
22 22 'ARRAY_A'
23 - ); // phpcs:ignore Standard.Category.SniffName.ErrorCode
23 + ); // phpcs:ignore
24 24
25 25 }
26 26
27 27 public static function list() {
@@ -26,20 +26,20 @@
26 26
27 27 public static function list() {
28 28
29 29 global $wpdb;
30 - return $wpdb->get_results(
30 + return $wpdb->get_results( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- plugin table
31 31 $wpdb->prepare('
32 32 SELECT *
33 - FROM `%1s`
33 + FROM %i
34 34 ORDER BY app_id, seq_nr, app_id_detail
35 - ', // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders
35 + ',
36 36 array(
37 37 WPDA::remove_backticks( self::get_base_table_name() )
38 38 )
39 - ), // db call ok; no-cache ok.
39 + ),
40 40 'ARRAY_A'
41 - ); // phpcs:ignore Standard.Category.SniffName.ErrorCode
41 + );
42 42
43 43 }
44 44
45 45 public static function create(
@@ -48,9 +48,9 @@
48 48 $seq_nr
49 49 ) {
50 50
51 51 global $wpdb;
52 - if ( 1 === $wpdb->insert(
52 + if ( 1 === $wpdb->insert( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery -- plugin table
53 53 static::get_base_table_name(),
54 54 array(
55 55 'app_id' => $app_id,
56 56 'app_id_detail' => $app_id_detail,
@@ -68,9 +68,9 @@
68 68
69 69 global $wpdb;
70 70
71 71 if ( $delete_as_detail ) {
72 - $wpdb->delete(
72 + $wpdb->delete( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- plugin table
73 73 static::get_base_table_name(),
74 74 array(
75 75 'app_id_detail' => $app_id,
76 76 )
@@ -76,9 +76,9 @@
76 76 )
77 77 );
78 78 }
79 79
80 - return $wpdb->delete(
80 + return $wpdb->delete( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- plugin table
81 81 static::get_base_table_name(),
82 82 array(
83 83 'app_id' => $app_id,
84 84 )