Cannot edit single image carousel gallery
-
If you have a github repo, I’d like to contribute the bug fix. Anyway, here it is:
For sinlge image, if there is a single image, say 1234, then ids will be treated as integer isntead of a string, which will cause javascript errors later and people cannot click edit button. To solve it, parse images variable to string.
assets/js/admin.js: Around line 412
function loadImages(images) { if (images) { var shortcode = new wp.shortcode({ tag: 'gallery', attrs: {ids: String(images)}, type: 'single' });
The topic ‘Cannot edit single image carousel gallery’ is closed to new replies.