Make WordPress Core


Ignore:
Timestamp:
11/04/2015 05:59:35 PM (10 years ago)
Author:
jorbin
Message:

Adjust heading structure for pages using wp-admin/css/install.css

The readme, installation, upgrade, and repair pages use a common css file. The heading structure for these pages was inconstant with h2s where there should be h1s, h1s where there is no relevant info and sometimes, no h1s at all.

Fixes #34519
Props rianrietveld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/maint/repair.php

    r33026 r35508  
    2323</head>
    2424<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>
    2626
    2727<?php
    2828
    2929if ( ! defined( 'WP_ALLOW_REPAIR' ) ) {
     30
     31    echo '<h1 class="screen-reader-text">' . __( 'Allow automatic repair database' ) . '</h1>';
     32
    3033    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>";
    3134
     
    5356
    5457    if ( $duplicated_keys || $missing_key ) {
     58
     59        echo '<h2 class="screen-reader-text">' . __( 'Check secret keys' ) . '</h2>';
     60
    5561        // Translators: 1: wp-config.php; 2: Secret key service URL.
    5662        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>';
     
    5864
    5965} elseif ( isset( $_GET['repair'] ) ) {
     66
     67    echo '<h1 class="screen-reader-text">' . __( 'Results database repair' ) . '</h1>';
     68
    6069    $optimize = 2 == $_GET['repair'];
    6170    $okay = true;
     
    138147    }
    139148} else {
     149
     150    echo '<h1 class="screen-reader-text">' . __( 'WordPress database repair' ) . '</h1>';
     151
    140152    if ( isset( $_GET['referrer'] ) && 'is_blog_installed' == $_GET['referrer'] )
    141153        echo '<p>' . __( 'One or more database tables are unavailable. To allow WordPress to attempt to repair these tables, press the &#8220;Repair Database&#8221; button. Repairing can take a while, so please be patient.' ) . '</p>';
Note: See TracChangeset for help on using the changeset viewer.