id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 35216 Return empty string from wp.shortcode.replace() callback is ignored prionkor "I was trying to just remove a shortcode by returning empty string from `wp.shortcode.replace()` callback. **For example** {{{ var text = ""This is some content with shortcode. [foo]some content[/foo] text = wp.shortcode.replace('foo', text, function(tag){ // attributes and content values are broken. return ''; }); }}} The callback function simply get ignored. No replacement happened for the shortcode. If I return anything other then empty string for example `' '` (string with space) it does replace the shortcode. I am not sure if this behavior was intended or not. " defect (bug) new normal Awaiting Review Shortcodes 3.5 normal has-patch javascript