mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core.
Props metodiew. Fixes #36495. git-svn-id: https://develop.svn.wordpress.org/trunk@37985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -269,7 +269,7 @@ class WP_User {
|
||||
*/
|
||||
public function __isset( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
_deprecated_argument( 'WP_User->id', '2.1.0',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
@@ -299,7 +299,7 @@ class WP_User {
|
||||
*/
|
||||
public function __get( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
_deprecated_argument( 'WP_User->id', '2.1.0',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
@@ -338,7 +338,7 @@ class WP_User {
|
||||
*/
|
||||
public function __set( $key, $value ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
_deprecated_argument( 'WP_User->id', '2.1.0',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
@@ -362,7 +362,7 @@ class WP_User {
|
||||
*/
|
||||
public function __unset( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1',
|
||||
_deprecated_argument( 'WP_User->id', '2.1.0',
|
||||
sprintf(
|
||||
/* translators: %s: WP_User->ID */
|
||||
__( 'Use %s instead.' ),
|
||||
@@ -712,7 +712,7 @@ class WP_User {
|
||||
*/
|
||||
public function has_cap( $cap ) {
|
||||
if ( is_numeric( $cap ) ) {
|
||||
_deprecated_argument( __FUNCTION__, '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );
|
||||
_deprecated_argument( __FUNCTION__, '2.0.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );
|
||||
$cap = $this->translate_level_to_cap( $cap );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user