JS Error while in Media libray popup
-
Hello
When you are in popup Media Library, then while selecting image you get following error:
unterminated string literal data: "action=ajax_thumbnail_rebuild&do=regen&id=<br />
It happens when page calls
wp_enqueue_media();
without params.
If you call it like thiswp_enqueue_media(array( 'post' => 1 ));
it will not produce errors.How to reproduce? Activate Twenty Fourteen theme, Apperarance->Background->Choose image (it opens popup Media Libray) -> select image -> Boom ??
Need to deactivate plugin to make it work in such places. Such call of media script is common in theme settings.
With regards.
https://www.ads-software.com/plugins/ajax-thumbnail-rebuild/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘JS Error while in Media libray popup’ is closed to new replies.