General: Wrap the error message in _deprecated_constructor() in <code> tags instead of <pre>.

Props aftabmuni.
Fixes #48483.
Built from https://develop.svn.wordpress.org/trunk@46633


git-svn-id: http://core.svn.wordpress.org/trunk@46433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-11-03 10:56:03 +00:00
parent 24650cbd68
commit 265bc4fe74
2 changed files with 5 additions and 5 deletions

View File

@ -4676,7 +4676,7 @@ function _deprecated_constructor( $class, $version, $parent_class = '' ) {
$class,
$parent_class,
$version,
'<pre>__construct()</pre>'
'<code>__construct()</code>'
),
E_USER_DEPRECATED
);
@ -4687,7 +4687,7 @@ function _deprecated_constructor( $class, $version, $parent_class = '' ) {
__( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
$class,
$version,
'<pre>__construct()</pre>'
'<code>__construct()</code>'
),
E_USER_DEPRECATED
);
@ -4700,7 +4700,7 @@ function _deprecated_constructor( $class, $version, $parent_class = '' ) {
$class,
$parent_class,
$version,
'<pre>__construct()</pre>'
'<code>__construct()</code>'
),
E_USER_DEPRECATED
);
@ -4710,7 +4710,7 @@ function _deprecated_constructor( $class, $version, $parent_class = '' ) {
'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
$class,
$version,
'<pre>__construct()</pre>'
'<code>__construct()</code>'
),
E_USER_DEPRECATED
);

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-46632';
$wp_version = '5.4-alpha-46633';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.