一旦我在“添加新价格”表中点击“发布”,就会遇到此错误:
致命错误:在第69行的/var/domains/main/wp-content/plugins/dk-pricr-sensitive-pricing-table/inc/rpt-save-metaboxes.php中调用未定义的函数sanitize_hex_color() / p>
答案 0 :(得分:0)
在WordPress 4.6版中,此功能已移至文件wp-includes / formatting.php,首先包含此文件,然后调用该功能:
if ( ! function_exists( 'sanitize_hex_color' ) ) {
include ABSPATH . 'wp-includes/formatting.php';
}