Php 解析错误:语法错误。意外';{&&&x27;-我不知道怎么了
我得到了这个错误:Php 解析错误:语法错误。意外';{&&&x27;-我不知道怎么了,php,wordpress,Php,Wordpress,我得到了这个错误: Parse error: syntax error, unexpected '{' in /home/u696221601/public_html/wp-content/themes/oblivion/themeOptions/functions.php on line 3 在这一行: <?php phpif ( !function_exists( 'optionsframework_init' ) ) { /*------------------------
Parse error: syntax error, unexpected '{' in /home/u696221601/public_html/wp-content/themes/oblivion/themeOptions/functions.php on line 3
在这一行:
<?php
phpif ( !function_exists( 'optionsframework_init' ) )
{
/*-----------------------------------------------------------------------------------*/ /* Options Framework Theme/*-----------------------------------------------------------------------------------*/ /* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */
if ( get_stylesheet_directory() == get_template_directory() )
{
尝试更改此选项
phpif ( !function_exists( 'optionsframework_init' ) )
{
到
试着改变这个
phpif ( !function_exists( 'optionsframework_init' ) )
{
到
试试这个
if ( !function_exists( 'optionsframework_init' ) )
{
if ( get_stylesheet_directory() == get_template_directory() )
{
//do somting
}
}
试试这个
if ( !function_exists( 'optionsframework_init' ) )
{
if ( get_stylesheet_directory() == get_template_directory() )
{
//do somting
}
}