Eval() Is Not Allowed
I am using the WPAlchemy MetaBox PHP Class in my wordpress theme for some custom post types. Problem appears when I run the Theme-Check: WARNING: Found eval in the file inc/metabox
Solution 1:
Try $.parseJSON(data.indexOf('{') < 0 ? '{' + data + '}' : data)
eval is evil
Solution 2:
You definitely shouldn't be using eval
as it's potentially a serious security problem. See this, this, this, this, this or this.
Just rewrite your code in a way that eval is not needed.
Solution 3:
If you had to use eval something went wrong. There should be no real situation to use eval that can't be properly implemented with best practice.
Solution 4:
You could use: "ev"."al" as it is scanning your file for "eval". But wether the use of eval is good, is an other question.
Post a Comment for "Eval() Is Not Allowed"