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

Props aftabmuni.
Fixes #48483.

git-svn-id: https://develop.svn.wordpress.org/trunk@46633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-11-03 10:54:39 +00:00
parent 358364e1ca
commit b0cdad744b

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
);