无法在wp目录中提交我的主题以获取SMOF base64decode的警告

时间:2014-11-25 08:30:12

标签: wordpress wordpress-theming

我已经通过wordpress目录设计了一个主题。我一直使用SMOF(略微修改的选项框架)作为主题选项。我无法在wordpress上提交主题。有两个警告:

WARNING:Found base64_encode in the file class.options_machine.php. base64_encode() is not allowed.

Line 546: $output .= '<textarea id='export_data' rows='8'>'.base64_encode(serialize($smof_data)) /* 100% safe - ignore theme check nag

WARNING: Found base64_decode in the file functions.interface.php. base64_decode() is not allowed.
Line 228: $smof_data = unserialize(base64_decode($smof_data)); //100% safe - ignore theme check nag

我是从SMOF文件中找到的。 现在我该如何解决这个问题或者我该怎么做?我应该删除此代码还是有另一种方法可以通过此代码?如果我从SMOF中删除此代码,那么SMOF是否正常工作?

1 个答案:

答案 0 :(得分:0)

瑞克是对的。 Wordpress.org不允许混淆代码。

您应该包含原始源代码,(或手动删除混淆代码)并重新提交。

请参阅http://codex.wordpress.org/Theme_Review#Guidelines