Make WordPress Core


Ignore:
Timestamp:
11/09/2019 12:57:27 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Consistently use do_action_deprecated() and apply_filters_deprecated() for deprecated hooks.

Props jrf.
See #48255.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image-edit.php

    r46359 r46684  
    293293         * @param int      $attachment_id The attachment post ID.
    294294         */
    295         $image = apply_filters( 'image_save_pre', $image, $attachment_id );
     295        $image = apply_filters_deprecated( 'image_save_pre', array( $image, $attachment_id ), '3.5.0', 'image_editor_save_pre' );
    296296
    297297        switch ( $mime_type ) {
     
    354354
    355355        /** This filter is documented in wp-admin/includes/image-edit.php */
    356         $image = apply_filters( 'image_save_pre', $image, $post_id );
     356        $image = apply_filters_deprecated( 'image_save_pre', array( $image, $post_id ), '3.5.0', 'image_editor_save_pre' );;
    357357
    358358        /**
     
    371371         * @param int             $post_id   Post ID.
    372372         */
    373         $saved = apply_filters( 'wp_save_image_file', null, $filename, $image, $mime_type, $post_id );
     373        $saved = apply_filters_deprecated( 'wp_save_image_file', array( null, $filename, $image, $mime_type, $post_id ), '3.5.0', 'wp_save_image_editor_file' );
    374374
    375375        if ( null !== $saved ) {
     
    571571         * @param array    $changes Array of change operations.
    572572         */
    573         $image = apply_filters( 'image_edit_before_change', $image, $changes );
     573        $image = apply_filters_deprecated( 'image_edit_before_change', array( $image, $changes ), '3.5.0', 'wp_image_editor_before_change' );
    574574    }
    575575
Note: See TracChangeset for help on using the changeset viewer.