[wp-trac] [WordPress Trac] #50997: Block Editor showing blank in WordPress 5.5

WordPress Trac noreply at wordpress.org
Thu Jul 22 23:42:37 UTC 2021


#50997: Block Editor showing blank in WordPress 5.5
--------------------------+-----------------------
 Reporter:  david-woakes  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  5.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------

Comment (by johnxba):

 "Uncaught EvalError: call to Function() blocked by CSP" is Firefox
 complaining (F12) about the use of eval in scripts. Eval must not be used
 in scripts because it is a security risk. CSP (Content Security Policy)
 can be used to enforce protection.
 [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-
 Security-Policy]

 Why eval should not be used in Javascript: [https://developer.mozilla.org
 /en-US/docs/Web/JavaScript/Reference/Global_Objects/eval]

 The error appears when wp-admin is used and an admin is logged in. In the
 current version of WordPress, two of the scripts containing eval according
 to Firefox are:
 wp-util.min.js?ver=5.8:2
 dashboard.min.js?ver=5.8:2

 Please remove the use of eval in scripts in WordPress.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50997#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list