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-admin/includes/plugin.php

    r37580 r37985  
    8787    if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) {
    8888        /* translators: 1: Site Wide Only: true, 2: Network: true */
    89         _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), '<code>Site Wide Only: true</code>', '<code>Network: true</code>' ) );
     89        _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), '<code>Site Wide Only: true</code>', '<code>Network: true</code>' ) );
    9090        $plugin_data['Network'] = $plugin_data['_sitewide'];
    9191    }
     
    17781778
    17791779    if ( 'misc' == $option_group ) {
    1780         _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1780        _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    17811781        $option_group = 'general';
    17821782    }
    17831783
    17841784    if ( 'privacy' == $option_group ) {
    1785         _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1785        _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
    17861786        $option_group = 'reading';
    17871787    }
     
    18071807
    18081808    if ( 'misc' == $option_group ) {
    1809         _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1809        _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    18101810        $option_group = 'general';
    18111811    }
    18121812
    18131813    if ( 'privacy' == $option_group ) {
    1814         _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1814        _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
    18151815        $option_group = 'reading';
    18161816    }
Note: See TracChangeset for help on using the changeset viewer.