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/WPDP_Page_Model.php +4 -4 5.5.225.5.84 View file →
@@ -45,9 +45,9 @@
45 45 public static function get_page( $project_id, $page_id ) {
46 46 static::check_base_table_name();
47 47
48 48 global $wpdb;
49 - return $wpdb->get_results(
49 + return $wpdb->get_results( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- plugin table
50 50 $wpdb->prepare(
51 51 'select * from `%1s` where project_id = %d and page_id = %d', // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders
52 52 array(
53 53 WPDA::remove_backticks( static::get_base_table_name() ),
@@ -55,9 +55,9 @@
55 55 $page_id,
56 56 )
57 57 ),
58 58 'ARRAY_A'
59 - ); // phpcs:ignore Standard.Category.SniffName.ErrorCode
59 + );
60 60 }
61 61
62 62 /**
63 63 * Get project page
@@ -69,9 +69,9 @@
69 69 public static function get_page_from_page_id( $page_id ) {
70 70 static::check_base_table_name();
71 71
72 72 global $wpdb;
73 - return $wpdb->get_results(
73 + return $wpdb->get_results( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- plugin table
74 74 $wpdb->prepare(
75 75 'select * from `%1s` where page_id = %d', // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders
76 76 array(
77 77 WPDA::remove_backticks( static::get_base_table_name() ),
@@ -78,9 +78,9 @@
78 78 $page_id,
79 79 )
80 80 ),
81 81 'ARRAY_A'
82 - ); // phpcs:ignore Standard.Category.SniffName.ErrorCode
82 + );
83 83 }
84 84
85 85 }
86 86