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/metaboxes/MediaAccess.php. eval() is not allowed..
Line 375: data = eval('(' + (data.indexOf('{') < 0 ? '{' + data + '}' : data) + ')');
I don't know why this is coming up, as line 375 is JavaScript enclosed in: CDATA
See below excerpt from MediaAccess.php
// include javascript for special functionality
?><script type="text/javascript">
/* <![CDATA[ */
var interval = null;
var data = $(this).attr('class').match(/({.*})/i);
data = (data && data[1]) ? data[1] : '' ;
data = eval("(" + (data.indexOf('{') < 0 ? '{' + data + '}' : data) + ")");
/* ]]> */
</script><?php
I want to submit this theme to the wordpress directory but they don't allow it with this error :/