Make WordPress Core


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

    r37707 r37985  
    13551355function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) {
    13561356    if ( ! empty( $deprecated ) )
    1357         _deprecated_argument( __FUNCTION__, '3.0' );
     1357        _deprecated_argument( __FUNCTION__, '3.0.0' );
    13581358
    13591359    if ( !$post = get_post( $id ) )
     
    16021602            // back-compat, $excluded_terms used to be $excluded_terms with IDs separated by " and "
    16031603            if ( false !== strpos( $excluded_terms, ' and ' ) ) {
    1604                 _deprecated_argument( __FUNCTION__, '3.3', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) );
     1604                _deprecated_argument( __FUNCTION__, '3.3.0', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) );
    16051605                $excluded_terms = explode( ' and ', $excluded_terms );
    16061606            } else {
Note: See TracChangeset for help on using the changeset viewer.