Make WordPress Core


Ignore:
Timestamp:
01/10/2021 07:26:46 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Add missing <p> tags to error message in wp-load.php.

Follow-up to [45909].

Props mukesh27, TimothyBlynJacobs, audrasjb.
Fixes #52254.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-load.php

    r47198 r49953  
    7272        wp_load_translations_early();
    7373
    74         // Die with an error message
    75         $die = sprintf(
     74        // Die with an error message.
     75        $die = '<p>' . sprintf(
    7676                /* translators: %s: wp-config.php */
    7777                __( "There doesn't seem to be a %s file. I need this before we can get started." ),
     
    8888                '<code>wp-config.php</code>'
    8989        ) . '</p>';
    90         $die .= '<p><a href="' . $path . '" class="button button-large">' . __( 'Create a Configuration File' ) . '</a>';
     90        $die .= '<p><a href="' . $path . '" class="button button-large">' . __( 'Create a Configuration File' ) . '</a></p>';
    9191
    9292        wp_die( $die, __( 'WordPress &rsaquo; Error' ) );
Note: See TracChangeset for help on using the changeset viewer.