Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE
-
I am facing this issue
Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE or ‘{‘ or ‘$’ in /home1/madworxx/public_html/wp-includes/nav-menu.php on line 720see the code below
function wp_setup_nav_menu_item( $menu_item )
{
if ( isset( $menu_item->post_type ) )
{
if ( ‘nav_menu_item’ == $menu_item->post_type )
{
$menu_item->db_id = (int) $menu_item->ID;
$menu_item->menu_item_parent = empty( $menu_item->menu_item_parent ) ? get_post_meta( $menu_item->ID, ‘_menu_item_menu_item_parent’, true ) : $menu_item->menu_item_parent;
$menu_item->object_id = empty( $menu_item->object_id ) ? get_post_meta( $menu_item->ID, ‘_menu_item_object_id’, true ) : $menu_item->last line is no. 720
even when I complete parenthesis wordpress dashboard works but not the website, what can be the error?
The topic ‘Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE’ is closed to new replies.