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

WordPress Trac noreply at wordpress.org
Mon Feb 24 20:50:34 UTC 2020


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

Comment (by mauteri):

 There's an example in the description of how it returns broken, unexpected
 results, though due to backwards compatibility and folks writing code to
 compensate, I proposed in my last comment introducing a new function
 (wp_parse_atts) to handle things as they are to be expected and deprecate
 this function.

 Replying to [comment:33 joyously]:
 > It doesn't seem to improve anything, and does it even handle a shortcode
 that encloses content?
 > Why change what isn't broken? I thought shortcodes were being replaced
 by blocks, so it's best to just leave this alone.

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


More information about the wp-trac mailing list