Changeset 60106
- Timestamp:
- 03/29/2025 11:58:07 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/maint/repair.php
r59027 r60106 109 109 // Loop over the tables, checking and repairing as needed. 110 110 foreach ( $tables as $table ) { 111 $check = $wpdb->get_row( "CHECK TABLE $table");111 $check = $wpdb->get_row( $wpdb->prepare( 'CHECK TABLE %i', $table ) ); 112 112 113 113 echo '<p>'; … … 119 119 printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table…' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ); 120 120 121 $repair = $wpdb->get_row( "REPAIR TABLE $table");121 $repair = $wpdb->get_row( $wpdb->prepare( 'REPAIR TABLE %i', $table ) ); 122 122 123 123 echo '<br /> '; … … 134 134 135 135 if ( $okay && $optimize ) { 136 $analyze = $wpdb->get_row( "ANALYZE TABLE $table");136 $analyze = $wpdb->get_row( $wpdb->prepare( 'ANALYZE TABLE %i', $table ) ); 137 137 138 138 echo '<br /> '; … … 141 141 printf( __( 'The %s table is already optimized.' ), "<code>$table</code>" ); 142 142 } else { 143 $optimize = $wpdb->get_row( "OPTIMIZE TABLE $table");143 $optimize = $wpdb->get_row( $wpdb->prepare( 'OPTIMIZE TABLE %i', $table ) ); 144 144 145 145 echo '<br /> ';
Note: See TracChangeset
for help on using the changeset viewer.