diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php index 2104ccd3ab..483f089d06 100644 --- a/wp-admin/maint/repair.php +++ b/wp-admin/maint/repair.php @@ -108,7 +108,7 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) { // Loop over the tables, checking and repairing as needed. foreach ( $tables as $table ) { - $check = $wpdb->get_row( "CHECK TABLE $table" ); + $check = $wpdb->get_row( $wpdb->prepare( 'CHECK TABLE %i', $table ) ); echo '
';
if ( 'OK' === $check->Msg_text ) {
@@ -118,7 +118,7 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
/* translators: 1: Table name, 2: Error message. */
printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table…' ), "$table", "$check->Msg_text" );
- $repair = $wpdb->get_row( "REPAIR TABLE $table" );
+ $repair = $wpdb->get_row( $wpdb->prepare( 'REPAIR TABLE %i', $table ) );
echo '
';
if ( 'OK' === $repair->Msg_text ) {
@@ -133,14 +133,14 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
}
if ( $okay && $optimize ) {
- $analyze = $wpdb->get_row( "ANALYZE TABLE $table" );
+ $analyze = $wpdb->get_row( $wpdb->prepare( 'ANALYZE TABLE %i', $table ) );
echo '
';
if ( 'Table is already up to date' === $analyze->Msg_text ) {
/* translators: %s: Table name. */
printf( __( 'The %s table is already optimized.' ), "$table" );
} else {
- $optimize = $wpdb->get_row( "OPTIMIZE TABLE $table" );
+ $optimize = $wpdb->get_row( $wpdb->prepare( 'OPTIMIZE TABLE %i', $table ) );
echo '
';
if ( 'OK' === $optimize->Msg_text || 'Table is already up to date' === $optimize->Msg_text ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 9be8ea95c8..df776855d3 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.9-alpha-60104';
+$wp_version = '6.9-alpha-60106';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.