| @@ -81,9 +81,9 @@ | ||
| 81 | 81 | $wpdb->prepare( 'where project_id = %d', array( $this->project_id ) ), |
| 82 | 82 | WPDP_Page_Model::BASE_TABLE_NAME |
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | - if ( count( $this->optionsets ) > 0 ) {//phpcs:ignore - 8.1 proof | |
| 85 | + if ( count( $this->optionsets ) > 0 ) { // phpcs:ignore -- 8.1 proof | |
| 86 | 86 | $this->get_child_optionsets(); |
| 87 | 87 | $this->insert_optionsets(); |
| 88 | 88 | } |
| 89 | 89 | |
| @@ -128,9 +128,9 @@ | ||
| 128 | 128 | $save_suppress_errors = $wpdb->suppress_errors; |
| 129 | 129 | $wpdb->suppress_errors = true; |
| 130 | 130 | |
| 131 | 131 | $query = "select * from $table_name $where"; |
| 132 | - $rows = $wpdb->get_results( $query, 'ARRAY_A' ); // phpcs:ignore WordPress.DB.PreparedSQL | |
| 132 | + $rows = $wpdb->get_results( $query, 'ARRAY_A' ); // phpcs:ignore WordPress.DB.PreparedSQL, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter | |
| 133 | 133 | |
| 134 | 134 | if ( $wpdb->num_rows > 0 ) { |
| 135 | 135 | // Prepare row export: get column names and data types. |
| 136 | 136 | $wpda_list_columns = WPDA_List_Columns_Cache::get_list_columns( '', $table_name ); // repository tables only |
| @@ -169,10 +169,10 @@ | ||
| 169 | 169 | $first_row = false; |
| 170 | 170 | } |
| 171 | 171 | echo "\n("; |
| 172 | 172 | |
| 173 | - $keys = array_keys( $row );//phpcs:ignore - 8.1 proof | |
| 174 | - $last_column = end( $keys );//phpcs:ignore - 8.1 proof | |
| 173 | + $keys = array_keys( $row ); // phpcs:ignore -- 8.1 proof | |
| 174 | + $last_column = end( $keys ); // phpcs:ignore -- 8.1 proof | |
| 175 | 175 | foreach ( $row as $column_name => $column_value ) { |
| 176 | 176 | if ( |
| 177 | 177 | ! ( WPDP_Project_Model::get_base_table_name() === $table_name && 'project_id' === $column_name ) && |
| 178 | 178 | ! ( WPDP_Page_Model::get_base_table_name() === $table_name && 'page_id' === $column_name ) |