Make WordPress Core

Ticket #34519: 34519.2.patch

File 34519.2.patch, 14.1 KB (added by rianrietveld, 10 years ago)
  • src/readme.html

     
    1313</h1>
    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>
    2323        <li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details.
     
    3232        <li>The installer should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on &#8220;Profile&#8221; to change the password.</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>
    3939        <li>Open <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
    4040        <li>You wanted more, perhaps? That&#8217;s it!</li>
    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>
    4646        <li>Delete your old WordPress files, saving ones you&#8217;ve modified.</li>
     
    4848        <li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></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>
    5757        <li><a href="http://www.mysql.com/">MySQL</a> version <strong>5.0</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>
    6363        <li><a href="http://www.mysql.com/">MySQL</a> version <strong>5.5</strong> or higher.</li>
     
    6565        <li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</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>
    7171        <dt><a href="https://codex.wordpress.org/">The WordPress Codex</a></dt>
     
    8080                <dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
    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>
    8686        <li>WordPress has a robust plugin <abbr title="application programming interface">API</abbr> that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="https://codex.wordpress.org/Plugin_API" title="WordPress plugin API">plugin documentation in the Codex</a>. You shouldn&#8217;t modify any of the core code.</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
    9797</body>
  • src/wp-admin/css/install.css

     
    3838        outline: #5b9dd9 solid 1px;
    3939}
    4040
    41 h1 {
     41h1, h2 {
    4242        border-bottom: 1px solid #dedede;
    4343        clear: both;
    4444        color: #666;
     
    4949        font-weight: normal;
    5050}
    5151
    52 h2 {
     52h3 {
    5353        font-size: 16px;
    5454}
    5555
     
    8787
    8888#logo {
    8989        margin: 6px 0 14px 0;
     90        padding: 0 0 7px 0;
    9091        border-bottom: none;
    9192        text-align:center
    9293}
  • src/wp-admin/install.php

     
    1616        <title>Error: PHP is not running</title>
    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>
    2323</html>
     
    7676        ?>
    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
    8282} // end display_header()
     
    106106
    107107        if ( ! is_null( $error ) ) {
    108108?>
     109<h1><?php _ex( 'Welcome', 'Howdy' ); ?></h1>
    109110<p class="message"><?php echo $error; ?></p>
    110111<?php } ?>
    111112<form id="setup" method="post" action="install.php?step=2" novalidate="novalidate">
     
    286287<h1><?php _ex( 'Welcome', 'Howdy' ); ?></h1>
    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
    292293<?php
  • src/wp-admin/maint/repair.php

     
    2222        ?>
    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
    3235        $default_key     = 'put your unique phrase here';
     
    5255        $duplicated_keys = array_filter( $duplicated_keys );
    5356
    5457        if ( $duplicated_keys || $missing_key ) {
     58
     59                echo '<h1 class="screen-reader-text">' . __( 'Check secret keys' ) . '</h1>';
     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>';
    5763        }
    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;
    6271        $problems = array();
     
    137146                echo '<p>' . __( 'Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.' ) . "</p><p><code>define('WP_ALLOW_REPAIR', true);</code></p>";
    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>';
    142154        else
  • src/wp-admin/setup-config.php

     
    8888        <?php wp_admin_css( 'install', true ); ?>
    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();
    9494
     
    103103        case -1:
    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 );
    108109                        echo '</form>';
     
    129130                        $step_1 .= '&amp;language=' . $loaded_language;
    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>
    135136        <li><?php _e( 'Database name' ); ?></li>
     
    155156
    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>
    160162        <table class="form-table">
     
    344346                chmod( $path_to_wp_config, 0666 );
    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
    349352<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p>
  • src/wp-admin/upgrade.php

     
    6767        ?>
    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>
    7777
     
    9292                        $goback = urlencode( $goback );
    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>
    9898<p class="step"><a class="button button-large button-primary" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
     
    105105                        $backto = esc_url( $backto );
    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>
    111111