[wp-trac] [WordPress Trac] #23148: Add hook in wp_ajax_save_attachment for additional attachment fields
WordPress Trac
noreply at wordpress.org
Wed Mar 1 16:30:56 UTC 2023
#23148: Add hook in wp_ajax_save_attachment for additional attachment fields
------------------------------------------------+-----------------------
Reporter: griffinjt | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Media | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch 2nd-opinion dev-feedback | Focuses:
------------------------------------------------+-----------------------
Changes (by audrasjb):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"55450" 55450]:
{{{
#!CommitTicketReference repository="" revision="55450"
Media: Rename the `wp_ajax_save_attachment` action hook to
`wp_ajax_save_attachment_updated`.
This changeset renames the `wp_ajax_save_attachment` action to
`wp_ajax_save_attachment_updated` to avoid confusion with the similarly
named `wp_ajax_save-attachment` action. This also add a dockblock note to
indicate that when checking if an action is being done, `doing_action(
'wp_ajax_save-attachment' )` may be used if that is more convenient.
Follow-up to [55106].
Props azaozz, sc0ttkclark, costdev.
Fixes #23148
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23148#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list