[wp-trac] [WordPress Trac] #55347: There should be filter for image tag in wp_filter_content_tags()

WordPress Trac noreply at wordpress.org
Tue Apr 12 05:17:00 UTC 2022


#55347: There should be filter for image tag in wp_filter_content_tags()
---------------------------------------------+-----------------------
 Reporter:  pbearne                          |       Owner:  flixos90
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.0
Component:  Media                            |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------

Comment (by peterwilsoncc):

 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/55347#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list