0

Hi i find this warning with theme check in my Wordpress theme, i found this solution but not working for me, any ideas??

WARNING: Found eval in the file inc/metaboxes/MediaAccess.php. eval() is not allowed..
Line 375: data = eval('(' + (data.indexOf('{') < 0 ? '{' + data + '}' : data) + ')');

Community
  • 1
  • 1
Jose Lo
  • 81
  • 2
  • 10
  • eval is disabled. do u really need it? –  Apr 11 '13 at 10:16
  • Hi, thank for the answer, i really don't but is a part of Wp-Alchemy class, i am using it to create some custom meta boxes in wordpress. – Jose Lo Apr 11 '13 at 13:30
  • Can [it](http://wordpress.org/extend/plugins/custom-meta-widget/) be a solution? –  Apr 11 '13 at 13:43
  • well thanks but not, what i really need is someone who can tell me how to traslate that eval expresion to $.parse.JSON valid expresion. – Jose Lo Apr 11 '13 at 13:50
  • Post some code they are related to that error. Also dump the full code into paste bin then link it. Help us to help you –  Apr 11 '13 at 13:56
  • Finally i found it, changing eval() to window[]...yes! – Jose Lo Apr 11 '13 at 13:57

0 Answers0