[wp-trac] [WordPress Trac] #55510: The `wp_content_img_tag` filter can appear to run twice when used to wrap image tags
WordPress Trac
noreply at wordpress.org
Tue Apr 12 05:17:00 UTC 2022
#55510: The `wp_content_img_tag` filter can appear to run twice when used to wrap
image tags
--------------------------------------+-----------------------
Reporter: peterwilsoncc | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"53149" 53149]:
{{{
#!CommitTicketReference repository="" revision="53149"
Media: Run the `wp_content_img_tag` filter once per image.
Prevent multiple identical `img` tags in a block of content causing the
`wp_content_img_tag` filter to fire multiple times for that image.
Follow up to [53028].
Props superpoincare, flixos90, pbearne, peterwilsoncc.
Fixes #55510.
See #55347.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55510#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list