WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/06/2016 12:39:01 PM (3 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/template.php

    r37972 r37985  
    12051205
    12061206    if ( 'misc' == $page ) {
    1207         _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1207        _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    12081208        $page = 'general';
    12091209    }
    12101210
    12111211    if ( 'privacy' == $page ) {
    1212         _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1212        _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
    12131213        $page = 'reading';
    12141214    }
     
    12561256
    12571257    if ( 'misc' == $page ) {
    1258         _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
     1258        _deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
    12591259        $page = 'general';
    12601260    }
    12611261
    12621262    if ( 'privacy' == $page ) {
    1263         _deprecated_argument( __FUNCTION__, '3.5', __( 'The privacy options group has been removed. Use another settings group.' ) );
     1263        _deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) );
    12641264        $page = 'reading';
    12651265    }
     
    19971997function convert_to_screen( $hook_name ) {
    19981998    if ( ! class_exists( 'WP_Screen', false ) ) {
    1999         _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3' );
     1999        _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3.0' );
    20002000        return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' );
    20012001    }
Note: See TracChangeset for help on using the changeset viewer.