[wp-trac] [WordPress Trac] #47863: Fix odd, unexpected output from shortcode_parse_attts

WordPress Trac noreply at wordpress.org
Tue Aug 13 22:30:44 UTC 2019


#47863: Fix odd, unexpected output from shortcode_parse_attts
--------------------------------------+-----------------------------
 Reporter:  mauteri                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  5.3
Component:  Shortcodes                |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by mauteri):

 @birgire yeah, i don't think we are going to win with that edge case :-/
 as that can go either way. probably best to assume if it is right before
 the `]` that it was intentionally part of the self closing shortcode. what
 do you think?

 yeah, we can probably tighten this up a bit by extending the `preg_match`.

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


More information about the wp-trac mailing list