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/wp-db.php

    r37674 r37985  
    11361136    function _weak_escape( $string ) {
    11371137        if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) )
    1138             _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' );
     1138            _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' );
    11391139        return addslashes( $string );
    11401140    }
     
    12101210    public function escape( $data ) {
    12111211        if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) )
    1212             _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' );
     1212            _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' );
    12131213        if ( is_array( $data ) ) {
    12141214            foreach ( $data as $k => $v ) {
     
    12791279        // This is not meant to be foolproof -- but it will catch obviously incorrect usage.
    12801280        if ( strpos( $query, '%' ) === false ) {
    1281             _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9' );
     1281            _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' );
    12821282        }
    12831283
     
    32113211     */
    32123212    public function supports_collation() {
    3213         _deprecated_function( __FUNCTION__, '3.5', 'wpdb::has_cap( \'collation\' )' );
     3213        _deprecated_function( __FUNCTION__, '3.5.0', 'wpdb::has_cap( \'collation\' )' );
    32143214        return $this->has_cap( 'collation' );
    32153215    }
Note: See TracChangeset for help on using the changeset viewer.