mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Remove <code>
tags from translatable strings in wp-includes/class-wp-user.php
.
Add translator comments. Props ramiy. Fixes #34576. Built from https://develop.svn.wordpress.org/trunk@35548 git-svn-id: http://core.svn.wordpress.org/trunk@35512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a0fa0d3328
commit
77b0fad640
@ -269,7 +269,13 @@ class WP_User {
|
|||||||
*/
|
*/
|
||||||
public function __isset( $key ) {
|
public function __isset( $key ) {
|
||||||
if ( 'id' == $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';
|
$key = 'ID';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,7 +299,13 @@ class WP_User {
|
|||||||
*/
|
*/
|
||||||
public function __get( $key ) {
|
public function __get( $key ) {
|
||||||
if ( 'id' == $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;
|
return $this->ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +338,13 @@ class WP_User {
|
|||||||
*/
|
*/
|
||||||
public function __set( $key, $value ) {
|
public function __set( $key, $value ) {
|
||||||
if ( 'id' == $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>'
|
||||||
|
)
|
||||||
|
);
|
||||||
$this->ID = $value;
|
$this->ID = $value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -344,7 +362,13 @@ class WP_User {
|
|||||||
*/
|
*/
|
||||||
public function __unset( $key ) {
|
public function __unset( $key ) {
|
||||||
if ( 'id' == $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 ) ) {
|
if ( isset( $this->data->$key ) ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta3-35547';
|
$wp_version = '4.4-beta3-35548';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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