Changeset 54858
- Timestamp:
- 11/19/2022 03:40:11 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install-helper.php
r53232 r54858 60 60 61 61 // Didn't find it, so try to create it. 62 // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query. 62 63 $wpdb->query( $create_ddl ); 63 64 … … 89 90 global $wpdb; 90 91 92 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names. 91 93 foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) { 92 94 if ( $column === $column_name ) { … … 96 98 97 99 // Didn't find it, so try to create it. 100 // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query. 98 101 $wpdb->query( $create_ddl ); 99 102 100 103 // We cannot directly tell that whether this succeeded! 104 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names. 101 105 foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) { 102 106 if ( $column === $column_name ) { … … 124 128 global $wpdb; 125 129 130 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names. 126 131 foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) { 127 132 if ( $column === $column_name ) { 128 133 129 134 // Found it, so try to drop it. 135 // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query. 130 136 $wpdb->query( $drop_ddl ); 131 137 132 138 // We cannot directly tell that whether this succeeded! 139 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names. 133 140 foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) { 134 141 if ( $column === $column_name ) { … … 175 182 global $wpdb; 176 183 177 $diffs = 0; 184 $diffs = 0; 185 186 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names. 178 187 $results = $wpdb->get_results( "DESC $table_name" ); 179 188
Note: See TracChangeset
for help on using the changeset viewer.