Make WordPress Core


Ignore:
Timestamp:
07/06/2016 12:39:01 PM (8 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-user.php

    r37431 r37985  
    270270    public function __isset( $key ) {
    271271        if ( 'id' == $key ) {
    272             _deprecated_argument( 'WP_User->id', '2.1',
     272            _deprecated_argument( 'WP_User->id', '2.1.0',
    273273                sprintf(
    274274                    /* translators: %s: WP_User->ID */
     
    300300    public function __get( $key ) {
    301301        if ( 'id' == $key ) {
    302             _deprecated_argument( 'WP_User->id', '2.1',
     302            _deprecated_argument( 'WP_User->id', '2.1.0',
    303303                sprintf(
    304304                    /* translators: %s: WP_User->ID */
     
    339339    public function __set( $key, $value ) {
    340340        if ( 'id' == $key ) {
    341             _deprecated_argument( 'WP_User->id', '2.1',
     341            _deprecated_argument( 'WP_User->id', '2.1.0',
    342342                sprintf(
    343343                    /* translators: %s: WP_User->ID */
     
    363363    public function __unset( $key ) {
    364364        if ( 'id' == $key ) {
    365             _deprecated_argument( 'WP_User->id', '2.1',
     365            _deprecated_argument( 'WP_User->id', '2.1.0',
    366366                sprintf(
    367367                    /* translators: %s: WP_User->ID */
     
    713713    public function has_cap( $cap ) {
    714714        if ( is_numeric( $cap ) ) {
    715             _deprecated_argument( __FUNCTION__, '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );
     715            _deprecated_argument( __FUNCTION__, '2.0.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );
    716716            $cap = $this->translate_level_to_cap( $cap );
    717717        }
Note: See TracChangeset for help on using the changeset viewer.