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-includes/class-wp-admin-bar.php

    r36833 r37985  
    2828
    2929            case 'menu' :
    30                 _deprecated_argument( 'WP_Admin_Bar', '3.3', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the <code>menu</code> property.' );
     30                _deprecated_argument( 'WP_Admin_Bar', '3.3.0', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the <code>menu</code> property.' );
    3131                return array(); // Sorry, folks.
    3232        }
     
    128128                return;
    129129
    130             _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3' );
     130            _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3.0' );
    131131            // Deprecated: Generate an ID from the title.
    132132            $args['id'] = esc_attr( sanitize_title( trim( $args['title'] ) ) );
     
    560560     */
    561561    public function recursive_render( $id, $node ) {
    562         _deprecated_function( __METHOD__, '3.3', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' );
     562        _deprecated_function( __METHOD__, '3.3.0', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' );
    563563        $this->_render_item( $node );
    564564    }
Note: See TracChangeset for help on using the changeset viewer.