[wp-trac] [WordPress Trac] #35216: Return empty string from wp.shortcode.replace() callback is ignored

WordPress Trac noreply at wordpress.org
Thu Dec 24 18:14:15 UTC 2015


#35216: Return empty string from wp.shortcode.replace() callback is ignored
--------------------------+-----------------------------------------
 Reporter:  prionkor      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by prionkor):

 For me the replace function should be replace the shortcode no matter what
 is returned from the callback function. Returning empty string should work
 like removing the shortcode.

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


More information about the wp-trac mailing list