[Plugin: Events Manager] 5.1.1 breaks conditional placeholders
-
The new regex for conditional placeholder removals in EM_Event::output breaks conditional placeholders such as {has_location}. Reverting to the old regex (or partially reverting) fixes it.
@1036 classes/em-event.php:
– preg_match_all(‘/\{([a-zA-Z0-9_]+)\}(.+)\{\/\1\}/s’, $event_string, $conditionals);
+ preg_match_all(‘/\{([a-zA-Z0-9_]+)\}([^{]+)\{\/\1\}/s’, $event_string, $conditionals);
- The topic ‘[Plugin: Events Manager] 5.1.1 breaks conditional placeholders’ is closed to new replies.