Changeset 35508 for trunk/src/wp-admin/maint/repair.php
- Timestamp:
- 11/04/2015 05:59:35 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/maint/repair.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/maint/repair.php
r33026 r35508 23 23 </head> 24 24 <body class="wp-core-ui"> 25 < h1 id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></h1>25 <p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p> 26 26 27 27 <?php 28 28 29 29 if ( ! defined( 'WP_ALLOW_REPAIR' ) ) { 30 31 echo '<h1 class="screen-reader-text">' . __( 'Allow automatic repair database' ) . '</h1>'; 32 30 33 echo '<p>' . __( 'To allow use of this page to automatically repair database problems, please add the following line to your <code>wp-config.php</code> file. Once this line is added to your config, reload this page.' ) . "</p><p><code>define('WP_ALLOW_REPAIR', true);</code></p>"; 31 34 … … 53 56 54 57 if ( $duplicated_keys || $missing_key ) { 58 59 echo '<h2 class="screen-reader-text">' . __( 'Check secret keys' ) . '</h2>'; 60 55 61 // Translators: 1: wp-config.php; 2: Secret key service URL. 56 62 echo '<p>' . sprintf( __( 'While you are editing your %1$s file, take a moment to make sure you have all 8 keys and that they are unique. You can generate these using the <a href="%2$s">WordPress.org secret key service</a>.' ), '<code>wp-config.php</code>', 'https://api.wordpress.org/secret-key/1.1/salt/' ) . '</p>'; … … 58 64 59 65 } elseif ( isset( $_GET['repair'] ) ) { 66 67 echo '<h1 class="screen-reader-text">' . __( 'Results database repair' ) . '</h1>'; 68 60 69 $optimize = 2 == $_GET['repair']; 61 70 $okay = true; … … 138 147 } 139 148 } else { 149 150 echo '<h1 class="screen-reader-text">' . __( 'WordPress database repair' ) . '</h1>'; 151 140 152 if ( isset( $_GET['referrer'] ) && 'is_blog_installed' == $_GET['referrer'] ) 141 153 echo '<p>' . __( '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.' ) . '</p>';
Note: See TracChangeset
for help on using the changeset viewer.