Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 169539

After 3.4.31 PHP from Customizr’s Code Snippets cause errors

$
0
0

Replies: 0

I saw there were problems with 3.4.30 and, knowing @nikeo and the Customizr team, I knew they would be fixed quickly. After updating to the bug-fixed 3.4.31 version, my front page wouldn’t load because I’m using more than one Code Snippets from the Customizr site. I immediately reverted to the previous theme version. The code at the bottom in my child’s function.php resulted in a syntax error for “undeclared function “tc__f”.

add_filter($hook_prefix.'text_sanitize', 'no_sanitize_text', 20, 3);
function no_sanitize_text($text, $fp_single_id, $fp_id){
global $hook_prefix;
$option_prefix = ( $hook_prefix == 'fpc_') ? $hook_prefix : '';
$featured_text = apply_filters( $hook_prefix.'text', tc__f( '__get_'. $option_prefix .'option' , 'tc_featured_text_'.$fp_single_id ), $fp_single_id, $fp_id );
return html_entity_decode($featured_text);
}

Is this easily fixed by changing the prefix of the function(s) and classes to their new prefixes as described in the first section of the 3.4.31 release notes? Any other advice for a fix? Thanks guys!

– RJD


Viewing all articles
Browse latest Browse all 169539

Trending Articles