Changeset 49750 for trunk/src/wp-admin/maint/repair.php
- Timestamp:
- 12/04/2020 03:48:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/maint/repair.php
r48126 r49750 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 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;114 printf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$repair->Msg_text</code>" ) . '<br />'; 115 $problems[ $table ] = $repair->Msg_text; 116 116 $okay = false; 117 117 } … … 119 119 120 120 if ( $okay && $optimize ) { 121 $ check= $wpdb->get_row( "ANALYZE TABLE $table" );121 $analyze = $wpdb->get_row( "ANALYZE TABLE $table" ); 122 122 123 123 echo '<br /> '; 124 if ( 'Table is already up to date' === $ check->Msg_text ) {124 if ( 'Table is already up to date' === $analyze->Msg_text ) { 125 125 /* translators: %s: Table name. */ 126 126 printf( __( 'The %s table is already optimized.' ), "<code>$table</code>" ); 127 127 } else { 128 $ check= $wpdb->get_row( "OPTIMIZE TABLE $table" );128 $optimize = $wpdb->get_row( "OPTIMIZE TABLE $table" ); 129 129 130 130 echo '<br /> '; 131 if ( 'OK' === $ check->Msg_text || 'Table is already up to date' === $check->Msg_text ) {131 if ( 'OK' === $optimize->Msg_text || 'Table is already up to date' === $optimize->Msg_text ) { 132 132 /* translators: %s: Table name. */ 133 133 printf( __( 'Successfully optimized the %s table.' ), "<code>$table</code>" ); 134 134 } else { 135 135 /* translators: 1: Table name. 2: Error message. */ 136 printf( __( 'Failed to optimize the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$ check->Msg_text</code>" );136 printf( __( 'Failed to optimize the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$optimize->Msg_text</code>" ); 137 137 } 138 138 }
Note: See TracChangeset
for help on using the changeset viewer.