Remove <code>
tags from translatable strings in wp-includes/class-wp-user.php
.
Add translator comments. Props ramiy. Fixes #34576. git-svn-id: https://develop.svn.wordpress.org/trunk@35548 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5081c05c00
commit
90f4b365a3
@ -269,7 +269,13 @@ class WP_User {
|
||||
*/
|
||||
public function __isset( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
'<code>WP_User->ID</code>'
|
||||
)
|
||||
);
|
||||
$key = 'ID';
|
||||
}
|
||||
|
||||
@ -293,7 +299,13 @@ class WP_User {
|
||||
*/
|
||||
public function __get( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
'<code>WP_User->ID</code>'
|
||||
)
|
||||
);
|
||||
return $this->ID;
|
||||
}
|
||||
|
||||
@ -326,7 +338,13 @@ class WP_User {
|
||||
*/
|
||||
public function __set( $key, $value ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
'<code>WP_User->ID</code>'
|
||||
)
|
||||
);
|
||||
$this->ID = $value;
|
||||
return;
|
||||
}
|
||||
@ -344,7 +362,13 @@ class WP_User {
|
||||
*/
|
||||
public function __unset( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
'<code>WP_User->ID</code>'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if ( isset( $this->data->$key ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user