mirror of
git://develop.git.wordpress.org/
synced 2025-02-22 23:54:09 +01:00
Bootstrap/Load: Add missing <p>
tags to error message in wp-load.php
.
Follow-up to [45909]. Props mukesh27, TimothyBlynJacobs, audrasjb. Fixes #52254. git-svn-id: https://develop.svn.wordpress.org/trunk@49953 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1f2695ed1f
commit
75b4c28619
@ -71,8 +71,8 @@ if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
|
|||||||
wp_check_php_mysql_versions();
|
wp_check_php_mysql_versions();
|
||||||
wp_load_translations_early();
|
wp_load_translations_early();
|
||||||
|
|
||||||
// Die with an error message
|
// Die with an error message.
|
||||||
$die = sprintf(
|
$die = '<p>' . sprintf(
|
||||||
/* translators: %s: wp-config.php */
|
/* translators: %s: wp-config.php */
|
||||||
__( "There doesn't seem to be a %s file. I need this before we can get started." ),
|
__( "There doesn't seem to be a %s file. I need this before we can get started." ),
|
||||||
'<code>wp-config.php</code>'
|
'<code>wp-config.php</code>'
|
||||||
@ -87,7 +87,7 @@ if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
|
|||||||
__( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ),
|
__( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ),
|
||||||
'<code>wp-config.php</code>'
|
'<code>wp-config.php</code>'
|
||||||
) . '</p>';
|
) . '</p>';
|
||||||
$die .= '<p><a href="' . $path . '" class="button button-large">' . __( 'Create a Configuration File' ) . '</a>';
|
$die .= '<p><a href="' . $path . '" class="button button-large">' . __( 'Create a Configuration File' ) . '</a></p>';
|
||||||
|
|
||||||
wp_die( $die, __( 'WordPress › Error' ) );
|
wp_die( $die, __( 'WordPress › Error' ) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user