mt_field (aka show_custom_field) before attribute not working
-
The WordPress function shortcode_parse_atts() no longer parses embedded html fragments. So the shortcode
[show_custom_field field="image_media" before="<img src='" after="'>"]
will no longer work as shortcode_parse_atts() will reject the before attribute as it contains an unclosed HTML element.
This is of course a very serious problem that unfortunately I cannot fix since shortcode_parse_atts() is a WordPress core function. I have opened a ticket with WordPress and am hoping they will change shortcode_parse_atts() back to its original behavior.
I sincerely apologize for this problem.
mc
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘mt_field (aka show_custom_field) before attribute not working’ is closed to new replies.