"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wp-admin/maint/repair.php" between
wordpress-5.6.2.tar.gz and wordpress-5.7-RC1.tar.gz

About: WordPress is a blogging system that has evolved to a full content management system. Release candidate.

repair.php  (wordpress-5.6.2):repair.php  (wordpress-5.7-RC1)
skipping to change at line 109 skipping to change at line 109
if ( 'OK' === $check->Msg_text ) { if ( 'OK' === $check->Msg_text ) {
/* translators: %s: Table name. */ /* translators: %s: Table name. */
printf( __( 'The %s table is okay.' ), "<code>$table</cod e>" ); printf( __( 'The %s table is okay.' ), "<code>$table</cod e>" );
} else { } else {
/* translators: 1: Table name, 2: Error message. */ /* 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&hellip;' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ); printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table&hellip;' ), "<code>$table</code>", "<code>$check->Msg_text</code>" );
$repair = $wpdb->get_row( "REPAIR TABLE $table" ); $repair = $wpdb->get_row( "REPAIR TABLE $table" );
echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;'; echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
if ( 'OK' === $check->Msg_text ) { if ( 'OK' === $repair->Msg_text ) {
/* translators: %s: Table name. */ /* translators: %s: Table name. */
printf( __( 'Successfully repaired the %s table.' ), "<code>$table</code>" ); printf( __( 'Successfully repaired the %s table.' ), "<code>$table</code>" );
} else { } else {
/* translators: 1: Table name, 2: Error message. */ /* translators: 1: Table name, 2: Error message. */
printf( __( 'Failed to repair the %1$s table. Err printf( __( 'Failed to repair the %1$s table. Err
or: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ) . '<br />' or: %2$s' ), "<code>$table</code>", "<code>$repair->Msg_text</code>" ) . '<br />
; ';
$problems[ $table ] = $check->Msg_text; $problems[ $table ] = $repair->Msg_text;
$okay = false; $okay = false;
} }
} }
if ( $okay && $optimize ) { if ( $okay && $optimize ) {
$check = $wpdb->get_row( "ANALYZE TABLE $table" ); $analyze = $wpdb->get_row( "ANALYZE TABLE $table" );
echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;'; echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
if ( 'Table is already up to date' === $check->Msg_text ) { if ( 'Table is already up to date' === $analyze->Msg_text ) {
/* translators: %s: Table name. */ /* translators: %s: Table name. */
printf( __( 'The %s table is already optimized.' ), "<code>$table</code>" ); printf( __( 'The %s table is already optimized.' ), "<code>$table</code>" );
} else { } else {
$check = $wpdb->get_row( "OPTIMIZE TABLE $table" ); $optimize = $wpdb->get_row( "OPTIMIZE TABLE $tabl e" );
echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;'; echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
if ( 'OK' === $check->Msg_text || 'Table is alrea dy up to date' === $check->Msg_text ) { if ( 'OK' === $optimize->Msg_text || 'Table is al ready up to date' === $optimize->Msg_text ) {
/* translators: %s: Table name. */ /* translators: %s: Table name. */
printf( __( 'Successfully optimized the % s table.' ), "<code>$table</code>" ); printf( __( 'Successfully optimized the % s table.' ), "<code>$table</code>" );
} else { } else {
/* translators: 1: Table name. 2: Error m essage. */ /* translators: 1: Table name. 2: Error m essage. */
printf( __( 'Failed to optimize the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ); printf( __( 'Failed to optimize the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$optimize->Msg_text</code>" );
} }
} }
} }
echo '</p>'; echo '</p>';
} }
if ( $problems ) { if ( $problems ) {
printf( printf(
/* translators: %s: URL to "Fixing WordPress" forum. */ /* translators: %s: URL to "Fixing WordPress" forum. */
'<p>' . __( 'Some database problems could not be repaired . Please copy-and-paste the following list of errors to the <a href="%s">WordPre ss support forums</a> to get additional assistance.' ) . '</p>', '<p>' . __( 'Some database problems could not be repaired . Please copy-and-paste the following list of errors to the <a href="%s">WordPre ss support forums</a> to get additional assistance.' ) . '</p>',
 End of changes. 7 change blocks. 
10 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)