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/image-edit.php

    r37966 r37985  
    257257        return true;
    258258    } else {
    259         _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) );
     259        _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
    260260
    261261        /**
     
    322322        return $image->save( $filename, $mime_type );
    323323    } else {
    324         _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) );
     324        _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
    325325
    326326        /** This filter is documented in wp-admin/includes/image-edit.php */
     
    388388 */
    389389function _rotate_image_resource($img, $angle) {
    390     _deprecated_function( __FUNCTION__, '3.5', __( 'Use WP_Image_Editor::rotate' ) );
     390    _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) );
    391391    if ( function_exists('imagerotate') ) {
    392392        $rotated = imagerotate($img, $angle, 0);
     
    411411 */
    412412function _flip_image_resource($img, $horz, $vert) {
    413     _deprecated_function( __FUNCTION__, '3.5', __( 'Use WP_Image_Editor::flip' ) );
     413    _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::flip' ) );
    414414    $w = imagesx($img);
    415415    $h = imagesy($img);
     
    464464function image_edit_apply_changes( $image, $changes ) {
    465465    if ( is_resource( $image ) )
    466         _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) );
     466        _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
    467467
    468468    if ( !is_array($changes) )
Note: See TracChangeset for help on using the changeset viewer.