Make WordPress Core


Ignore:
Timestamp:
04/20/2022 08:11:34 AM (3 years ago)
Author:
audrasjb
Message:

Media: Remove attachment_fields_to_save filter and deprecate image_attachment_fields_to_save().

This filter prevented removing attachment titles. This changeset removes the filter and deprecates the related function since it is no longer used.

Props dromero20, desrosj, Junaidkbr, francina, antpb, audrasjb, aadilali, etaproducto, azouamauriac, Boniu91, SergeyBiryukov.
Fixes #39108.

File:
1 edited

Legend:

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

    r51266 r53228  
    3131add_filter( 'async_upload_video', 'get_media_item', 10, 2 );
    3232add_filter( 'async_upload_file', 'get_media_item', 10, 2 );
    33 
    34 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 );
    3533
    3634add_filter( 'media_upload_gallery', 'media_upload_gallery' );
Note: See TracChangeset for help on using the changeset viewer.