解析错误:语法错误,第888行wordpress/wp includes/nav-menu.php中的文件意外结束
我的代码中不断出现错误“Parse error:syntax error,第13行出现意外的文件结尾”…如下所示 下面是nav-menu.php代码的最后一部分解析错误:语法错误,第888行wordpress/wp includes/nav-menu.php中的文件意外结束,php,wordpress,syntax-error,Php,Wordpress,Syntax Error,我的代码中不断出现错误“Parse error:syntax error,第13行出现意外的文件结尾”…如下所示 下面是nav-menu.php代码的最后一部分 /** This filter is documented in wp-includes/nav-menu.php */ $menu_item->attr_title = apply_filters( 'nav_menu_attr_title', '' ); /** This filter
/** This filter is documented in wp-includes/nav-menu.php */
$menu_item->attr_title = apply_filters( 'nav_menu_attr_title', '' );
/** This filter is documented in wp-includes/nav-menu.php */
$menu_item->description = apply_filters( 'nav_menu_description', '' );
$menu_item->classes = array();
$menu_item->xfn = '';
}
} elseif ( isset( $menu_item->taxonomy ) ) {
$menu_it
关闭elseif块后的大括号,错误应得到解决 还有函数的大括号,所以脚本的结尾应该是
elseif ( isset( $menu_item->taxonomy ) ) {
$menu_it;
}
}
您下一步发布了什么
$menu\u它
?如果从哪里开始呢?我想你缺少了部分代码,因为我没有看到第13行。这是我的完整文件,请检查。}elseif(isset($menu\u item->taxonomy)){$menu\u it
之后是什么?您是否关闭了该函数?我认为它在函数内部,这不是解决方案。否!解析错误:语法错误,意外'}“在第889行$menu\u it
中,这是一个不完整的语句。@AbdullahAlNoman trynow@AbdullahAlNoman文件已损坏,在语句elseif(isset($menu\u item->taxonomy)){$menu\u it