Make WordPress Core

Changeset 35508


Ignore:
Timestamp:
11/04/2015 05:59:35 PM (9 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

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/readme.html

    r33937 r35508  
    1414<p style="text-align: center">Semantic Personal Publishing Platform</p>
    1515
    16 <h1>First Things First</h1>
     16<h2>First Things First</h2>
    1717<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I&#8217;m proud to be a part of. Thousands of hours have gone into WordPress, and we&#8217;re dedicated to making it better every day. Thank you for making it part of your world.</p>
    1818<p style="text-align: right">&#8212; Matt Mullenweg</p>
    1919
    20 <h1>Installation: Famous 5-minute install</h1>
     20<h2>Installation: Famous 5-minute install</h2>
    2121<ol>
    2222    <li>Unzip the package in an empty directory and upload everything.</li>
     
    3333</ol>
    3434
    35 <h1>Updating</h1>
    36 <h2>Using the Automatic Updater</h2>
     35<h2>Updating</h2>
     36<h3>Using the Automatic Updater</h3>
    3737<p>If you are updating from version 2.7 or higher, you can use the automatic updater:</p>
    3838<ol>
     
    4141</ol>
    4242
    43 <h2>Updating Manually</h2>
     43<h3>Updating Manually</h3>
    4444<ol>
    4545    <li>Before you update anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</li>
     
    4949</ol>
    5050
    51 <h1>Migrating from other systems</h1>
     51<h2>Migrating from other systems</h2>
    5252<p>WordPress can <a href="https://codex.wordpress.org/Importing_Content">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php" title="Import to WordPress">our import tools</a>.</p>
    5353
    54 <h1>System Requirements</h1>
     54<h2>System Requirements</h2>
    5555<ul>
    5656    <li><a href="http://php.net/">PHP</a> version <strong>5.2.4</strong> or higher.</li>
     
    5858</ul>
    5959
    60 <h2>Recommendations</h2>
     60<h3>Recommendations</h3>
    6161<ul>
    6262    <li><a href="http://php.net/">PHP</a> version <strong>5.6</strong> or higher.</li>
     
    6666</ul>
    6767
    68 <h1>Online Resources</h1>
     68<h2>Online Resources</h2>
    6969<p>If you have any questions that aren&#8217;t addressed in this document, please take advantage of WordPress&#8217; numerous online resources:</p>
    7070<dl>
     
    8181</dl>
    8282
    83 <h1>Final Notes</h1>
     83<h2>Final Notes</h2>
    8484<ul>
    8585    <li>If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the <a href="https://wordpress.org/support/">Support Forums</a>.</li>
     
    8787</ul>
    8888
    89 <h1>Share the Love</h1>
     89<h2>Share the Love</h2>
    9090<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better&#8212;you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.</p>
    9191
    9292<p>WordPress is the official continuation of <a href="http://cafelog.com/">b2/caf&#233;log</a>, which came from Michel V. The work has been continued by the <a href="https://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="https://wordpress.org/donate/" title="Donate to WordPress">donating</a>.</p>
    9393
    94 <h1>License</h1>
     94<h2>License</h2>
    9595<p>WordPress is free software, and is released under the terms of the <abbr title="GNU General Public License">GPL</abbr> version 2 or (at your option) any later version. See <a href="license.txt">license.txt</a>.</p>
    9696
  • trunk/src/wp-admin/css/install.css

    r35494 r35508  
    3939}
    4040
    41 h1 {
     41h1, h2 {
    4242    border-bottom: 1px solid #dedede;
    4343    clear: both;
     
    5050}
    5151
    52 h2 {
     52h3 {
    5353    font-size: 16px;
    5454}
     
    8888#logo {
    8989    margin: 6px 0 14px 0;
     90    padding: 0 0 7px 0;
    9091    border-bottom: none;
    9192    text-align:center
  • trunk/src/wp-admin/install.php

    r34752 r35508  
    1717</head>
    1818<body class="wp-core-ui">
    19     <h1 id="logo"><a href="https://wordpress.org/">WordPress</a></h1>
    20     <h2>Error: PHP is not running</h2>
     19    <p id="logo"><a href="https://wordpress.org/">WordPress</a></p>
     20    <h1>Error: PHP is not running</h1>
    2121    <p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
    2222</body>
     
    7777</head>
    7878<body class="wp-core-ui<?php echo $body_classes ?>">
    79 <h1 id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></h1>
     79<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
    8080
    8181<?php
     
    107107    if ( ! is_null( $error ) ) {
    108108?>
     109<h1><?php _ex( 'Welcome', 'Howdy' ); ?></h1>
    109110<p class="message"><?php echo $error; ?></p>
    110111<?php } ?>
     
    287288<p><?php _e( 'Welcome to the famous five-minute WordPress installation process! Just fill in the information below and you&#8217;ll be on your way to using the most extendable and powerful personal publishing platform in the world.' ); ?></p>
    288289
    289 <h1><?php _e( 'Information needed' ); ?></h1>
     290<h2><?php _e( 'Information needed' ); ?></h2>
    290291<p><?php _e( 'Please provide the following information. Don&#8217;t worry, you can always change these settings later.' ); ?></p>
    291292
  • 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>';
  • trunk/src/wp-admin/setup-config.php

    r35143 r35508  
    8989</head>
    9090<body class="<?php echo implode( ' ', $body_classes ); ?>">
    91 <h1 id="logo"><a href="<?php esc_attr_e( 'https://wordpress.org/' ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></h1>
     91<p id="logo"><a href="<?php esc_attr_e( 'https://wordpress.org/' ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
    9292<?php
    9393} // end function setup_config_display_header();
     
    104104        if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
    105105            setup_config_display_header( 'language-chooser' );
     106            echo '<h1 class="screen-reader-text">Select a default language</h1>';
    106107            echo '<form id="setup" method="post" action="?step=0">';
    107108            wp_install_language_form( $languages );
     
    130131        }
    131132?>
    132 
     133<h1 class="screen-reader-text"><?php _e( 'Before getting started' ) ?></h1>
    133134<p><?php _e( 'Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.' ) ?></p>
    134135<ol>
     
    156157        setup_config_display_header();
    157158    ?>
     159<h1 class="screen-reader-text"><?php _e( 'Setup your database connection' ) ?></h1>
    158160<form method="post" action="setup-config.php?step=2">
    159161    <p><?php _e( "Below you should enter your database connection details. If you&#8217;re not sure about these, contact your host." ); ?></p>
     
    345347        setup_config_display_header();
    346348?>
     349<h1 class="screen-reader-text"><?php _e( 'Successful database connection' ) ?></h1>
    347350<p><?php _e( "All right, sparky! You&#8217;ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to&hellip;" ); ?></p>
    348351
  • trunk/src/wp-admin/upgrade.php

    r35204 r35508  
    6868</head>
    6969<body class="wp-core-ui">
    70 <h1 id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></h1>
     70<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
    7171
    7272<?php if ( get_option( 'db_version' ) == $wp_db_version || !is_blog_installed() ) : ?>
    7373
    74 <h2><?php _e( 'No Update Required' ); ?></h2>
     74<h1><?php _e( 'No Update Required' ); ?></h1>
    7575<p><?php _e( 'Your WordPress database is already up-to-date!' ); ?></p>
    7676<p class="step"><a class="button button-large" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p>
     
    9393        }
    9494?>
    95 <h2><?php _e( 'Database Update Required' ); ?></h2>
     95<h1><?php _e( 'Database Update Required' ); ?></h1>
    9696<p><?php _e( 'WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.' ); ?></p>
    9797<p><?php _e( 'The database update process may take a little while, so please be patient.' ); ?></p>
     
    106106            $backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
    107107?>
    108 <h2><?php _e( 'Update Complete' ); ?></h2>
     108<h1><?php _e( 'Update Complete' ); ?></h1>
    109109    <p><?php _e( 'Your WordPress database has been successfully updated!' ); ?></p>
    110110    <p class="step"><a class="button button-large" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p>
Note: See TracChangeset for help on using the changeset viewer.