php - Wordpress syntax error, eval()'d code -


i using wordpress , have following error message:

parse error: syntax error, unexpected ';' in /www/htdocs/w006fce9/endax/wp-content/plugins/insert-php/insert_php.php(48) : eval()'d code on line 3

the source code:

if( ! function_exists('will_bontrager_insert_php') ) {      function will_bontrager_insert_php($content)     {         $will_bontrager_content = $content;         preg_match_all('!\[insert_php[^\]]*\](.*?)\[/insert_php[^\]]*\]!is',$will_bontrager_content,$will_bontrager_matches);         $will_bontrager_nummatches = count($will_bontrager_matches[0]);         for( $will_bontrager_i=0; $will_bontrager_i<$will_bontrager_nummatches; $will_bontrager_i++ )         {             ob_start();             eval($will_bontrager_matches[1][$will_bontrager_i]);             $will_bontrager_replacement = ob_get_contents();             ob_clean();             ob_end_flush();             $will_bontrager_content = preg_replace('/'.preg_quote($will_bontrager_matches[0][$will_bontrager_i],'/').'/',$will_bontrager_replacement,$will_bontrager_content,1);         }         return $will_bontrager_content;     } # function will_bontrager_insert_php()      add_filter( 'the_content', 'will_bontrager_insert_php', 9 );  } # if( ! function_exists('will_bontrager_insert_php') ) 

i cannot find error. can me?

best regards,

mustafa


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -