mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
Fix coding standards for translatable _deprecated_class()
message strings
See #41125 Built from https://develop.svn.wordpress.org/trunk@56468 git-svn-id: http://core.svn.wordpress.org/trunk@55980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
668dceb31c
commit
55d1c71d56
@ -5638,10 +5638,10 @@ function _deprecated_class( $class, $version, $replacement = '' ) {
|
|||||||
if ( function_exists( '__' ) ) {
|
if ( function_exists( '__' ) ) {
|
||||||
if ( ! is_null( $replacement ) ) {
|
if ( ! is_null( $replacement ) ) {
|
||||||
/* translators: 1: PHP class name, 2: version number, 3: alternative clas or function name */
|
/* translators: 1: PHP class name, 2: version number, 3: alternative clas or function name */
|
||||||
trigger_error( sprintf( __('Class %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $class, $version, $replacement ), E_USER_DEPRECATED );
|
trigger_error( sprintf( __( 'Class %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $class, $version, $replacement ), E_USER_DEPRECATED );
|
||||||
} else {
|
} else {
|
||||||
/* translators: 1: PHP class name, 2: version number */
|
/* translators: 1: PHP class name, 2: version number */
|
||||||
trigger_error( sprintf( __('Class %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $class, $version ), E_USER_DEPRECATED );
|
trigger_error( sprintf( __( 'Class %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ), $class, $version ), E_USER_DEPRECATED );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( ! is_null( $replacement ) ) {
|
if ( ! is_null( $replacement ) ) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-alpha-56467';
|
$wp_version = '6.4-alpha-56468';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user