[wp-trac] [WordPress Trac] #15600: shortcode_unautop returns emtpy string

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 29 03:08:03 UTC 2011


#15600: shortcode_unautop returns emtpy string
-------------------------------------------------+-------------------------
 Reporter:  mdbitz                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  high                                 |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  major                                |     Version:  3.0.1
 Keywords:  shortcode_autop ShortCode reporter-  |  Resolution:
  feedback needs-testing has-patch needs-unit-   |
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by dshafik):

 * keywords:
     shortcode_autop, ShortCode reporter-feedback needs-testing has-patch
     needs-unit-tests
     =>
     shortcode_autop ShortCode reporter-feedback needs-testing has-patch
     needs-unit-tests


Comment:

 The problem with this setting is that it's not based on the length of the
 input, it's based on how the pattern is written against the input. Having
 used it for shortcode-type parsing, there is no one-true-answer for this
 problem.

 You can chunk the content, but you might split a tag pair over two chunks.

 The only solution I found was to parse the string as a stream of text
 using strpos/substring.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15600#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list