From 13461557fd4d04841272aca1b43dc62946a7b7c5 Mon Sep 17 00:00:00 2001
From: Mehrshad Darzi <mehrshad198@gmail.com>
Date: Fri, 4 Dec 2020 11:42:03 +0330
Subject: [PATCH] add
---
wp-admin/maint/repair.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php
index 853cc6c..378ef39 100644
|
a
|
b
|
if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
|
| 106 | 106 | $repair = $wpdb->get_row( "REPAIR TABLE $table" ); |
| 107 | 107 | |
| 108 | 108 | echo '<br /> '; |
| 109 | | if ( 'OK' === $check->Msg_text ) { |
| | 109 | if ( 'OK' === $repair->Msg_text ) { |
| 110 | 110 | /* translators: %s: Table name. */ |
| 111 | 111 | printf( __( 'Successfully repaired the %s table.' ), "<code>$table</code>" ); |
| 112 | 112 | } else { |
| 113 | 113 | /* translators: 1: Table name, 2: Error message. */ |
| 114 | 114 | printf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ) . '<br />'; |
| 115 | | $problems[ $table ] = $check->Msg_text; |
| | 115 | $problems[ $table ] = $repair->Msg_text; |
| 116 | 116 | $okay = false; |
| 117 | 117 | } |
| 118 | 118 | } |