Changeset 19593 for trunk/wp-admin/maint/repair.php
- Timestamp:
- 12/13/2011 11:45:31 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/maint/repair.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/maint/repair.php
r19073 r19593 20 20 21 21 if ( !defined('WP_ALLOW_REPAIR') ) { 22 echo '<p>'.__('To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>";22 echo '<p>'.__('To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>"; 23 23 } elseif ( isset($_GET['repair']) ) { 24 24 check_admin_referer('repair_db'); … … 50 50 } else { 51 51 /* translators: 1: table name, 2: error message, */ 52 printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table…' ) , $table, "<code>$check->Msg_text</code>" );52 printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table…' ) , $table, "<code>$check->Msg_text</code>" ); 53 53 54 54 $repair = $wpdb->get_row("REPAIR TABLE $table"); … … 96 96 echo '<textarea name="errors" id="errors" rows="20" cols="60">' . esc_textarea( implode("\n", $problem_output) ) . '</textarea>'; 97 97 } else { 98 echo '<p>'.__('Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>";98 echo '<p>'.__('Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>"; 99 99 } 100 100 } else { … … 102 102 _e('One or more database tables are unavailable. To allow WordPress to attempt to repair these tables, press the “Repair Database” button. Repairing can take a while, so please be patient.'); 103 103 else 104 _e('WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.')104 _e('WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.') 105 105 ?> 106 106 <p class="step"><a class="button" href="<?php echo wp_nonce_url('repair.php?repair=1', 'repair_db') ?>"><?php _e( 'Repair Database' ); ?></a></p> 107 <?php _e('WordPress can also attempt to optimize the database. This improves performance in some situations.Repairing and optimizing the database can take a long time and the database will be locked while optimizing.'); ?>107 <?php _e('WordPress can also attempt to optimize the database. This improves performance in some situations. Repairing and optimizing the database can take a long time and the database will be locked while optimizing.'); ?> 108 108 <p class="step"><a class="button" href="<?php echo wp_nonce_url('repair.php?repair=2', 'repair_db') ?>"><?php _e( 'Repair and Optimize Database' ); ?></a></p> 109 109 <?php
Note: See TracChangeset
for help on using the changeset viewer.