[wp-trac] Re: [WordPress Trac] #9264: Self closing shortcodes

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 4 11:15:34 GMT 2009


#9264: Self closing shortcodes
--------------------------+-------------------------------------------------
 Reporter:  rb-cohen      |       Owner:  anonymous 
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  2.7.1     
 Severity:  normal        |    Keywords:  shortcode 
--------------------------+-------------------------------------------------

Comment(by DD32):

 > I think ideally the slash shouldn't be needed as !WordPress should be
 smart enough to work backwards and balance the tags. However that may not
 be possible due to technical reasons, I'm not sure.

 The problem is, Whilst !WordPress can work backwards and work without the
 closing bracket, !WordPress still looks for the closing bracket, If you
 start your post with [TestShortcode] then it'll search to the end of the
 post for a [/TetShortCode], not a problem with a small post, but
 problematic for long posts

 (Thats purely based off the reporters description, thats the way i've
 interpreted it at least)

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


More information about the wp-trac mailing list