Ticket #11529: repair.php.diff
File repair.php.diff, 1.8 KB (added by , 15 years ago) |
---|
-
repair.php
41 41 echo "<p>The {$wpdb->prefix}$table table is okay."; 42 42 } else { 43 43 echo "<p>The {$wpdb->prefix}$table table is not okay. It is reporting the following error: <code>$check->Msg_text</code>. WordPress will attempt to repair this table…"; 44 $repair = $wpdb->get_row("REPAIR TABLE {$wp b->prefix}$table");44 $repair = $wpdb->get_row("REPAIR TABLE {$wpdb->prefix}$table"); 45 45 if ( 'OK' == $check->Msg_text ) { 46 echo "<br /> Sucessfully repaired the {$wp b->prefix}$table table.";46 echo "<br /> Sucessfully repaired the {$wpdb->prefix}$table table."; 47 47 } else { 48 48 echo "<br /> Failed to repair the {$wpdb->prefix}$table table. Error: $check->Msg_text<br />"; 49 49 $problems["{$wpdb->prefix}$table"] = $check->Msg_text; … … 53 53 if ( $okay && $optimize ) { 54 54 $check = $wpdb->get_row("ANALYZE TABLE {$wpdb->prefix}$table"); 55 55 if ( 'Table is already up to date' == $check->Msg_text ) { 56 echo "<br /> The {$wp b->prefix}$table table is already optimized.";56 echo "<br /> The {$wpdb->prefix}$table table is already optimized."; 57 57 } else { 58 58 $check = $wpdb->get_row("OPTIMIZE TABLE {$wpdb->prefix}$table"); 59 59 if ( 'OK' == $check->Msg_text || 'Table is already up to date' == $check->Msg_text ) 60 echo "<br /> Sucessfully optimized the {$wp b->prefix}$table table.";60 echo "<br /> Sucessfully optimized the {$wpdb->prefix}$table table."; 61 61 else 62 62 echo "<br /> Failed to optimize the {$wpdb->prefix}$table table. Error: $check->Msg_text"; 63 63 }