[wp-trac] [WordPress Trac] #52055: Allow modifying gallery_shortcode attributes before filtering the default HTML output.

WordPress Trac noreply at wordpress.org
Fri Jan 29 15:20:38 UTC 2021


#52055: Allow modifying gallery_shortcode attributes before filtering the default
HTML output.
------------------------------------+------------------------------
 Reporter:  webbistro               |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Media                   |     Version:  2.5
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------
Changes (by Mista-Flo):

 * keywords:  has-patch needs-testing => has-patch dev-feedback


Comment:

 Actually the issue with this patch, is that if you actually filter the
 $atts var, if other plugins edit output with the other filter, they will
 still rely on $attr which does not contain edit parameter query.

 But if I change the first parameter of the old filter to $atts, it will
 create a breaking change which is not good I think.

 Any other thought?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52055#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list