← All changes
|
WPDataAccess/Plugin_Table_Models/WPDP_Page_Model.php
+4
-4
5.5.22
→
5.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 | |