function remove_short_codes executes shortcodes instead of removing them
-
function remove_short_codes executes shortcodes instead of removing them
This is a bad idea because many shortcodes are not expected to run in the context in which they are called here.
I note the code:
if(class_exists("WPBMap")){ WPBMap::addAllMappedShortcodes(); // This does all the work $content = apply_filters( 'the_content',$content); }
however WPBMap does not exist in standard install and so code proceeds to:
return do_shortcode($content);
Errors in do_shortcode result in the related item being omitted from the export file.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘function remove_short_codes executes shortcodes instead of removing them’ is closed to new replies.