Make WordPress Core

Changeset 55474


Ignore:
Timestamp:
03/07/2023 01:11:32 PM (13 months ago)
Author:
audrasjb
Message:

Media: Revert wp_ajax_save_attachment_updated hook.

This changeset removes the wp_ajax_save_attachment_updated hook by reverting [55106], [55111], and [55450], to give it more time for further discussions as there are still concerns about whether this hook is necessary.

Follow-up to [55106], [55111], [55450].

Props costdev, SergeyBiryukov, peterwilsoncc, azaozz.
See #23148.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r55450 r55474  
    31453145    } else {
    31463146        wp_update_post( $post );
    3147 
    3148         /**
    3149          * Fires after an attachment has been updated via the Ajax handler
    3150          * and before the JSON response is sent.
    3151          *
    3152          * When checking if an action is being done, `doing_action( 'wp_ajax_save-attachment' )`
    3153          * may be used if that is more convenient.
    3154          *
    3155          * @since 6.2.0
    3156          *
    3157          * @param array $post    The attachment data.
    3158          * @param array $changes An array containing the updated attachment attributes.
    3159          */
    3160         do_action( 'wp_ajax_save_attachment_updated', $post, $changes );
    31613147    }
    31623148
Note: See TracChangeset for help on using the changeset viewer.