Hello,
this is just a bug report, I’m not looking for support.
I have an issue and I think it’s may be a bug.
If I try to set a background image in “Theme background” using the upload button, and if this image have any char in “caption” I get this error:
load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2 Uncaught Error: Syntax error, unrecognized expression: [caption id="attachment_37" align="alignnone" width="696"]
12345[/caption]
at Function.ea.error (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at ea.tokenize (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at ea.select (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at Function.ea [as find] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at n.fn.init.find (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at new n.fn.init (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at n.fn.init.n [as constructor] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at new n.fn.init (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at n (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils&ver=5.5.3:2)
at Object.window.send_to_editor (td_wp_admin.min.js?ver=10.3.7:46)
If I remove the “caption” the image will be set as background.
This issue happen with all images options in the “Theme panel”, logo, favicon …
-WordPress Version 5.5.3
-Newspaper Version 10.3.7
-PHP Version 7.3
-Chrome Version 86.0.4240.183 (Official Build) (64-bit)
-Windows 7 x64 SP1
Best Regards
Nexus
Hello,
sorry for the delay.
I have re-installed on a local server (unix) the new version of Newspaper Version: 10.3.9.1 and I do not have anymore the error message, but the bug still here.
As you ca see on the video, if the image have a Caption text, this image cannot be set as background.
[video src="https://i.imgur.com/51U84Bf.mp4" /]
Best Regards
Nexus