Syntax 错误:语法错误,无法识别的表达式:javascript:TagPopup\u OpenForm(

Syntax 错误:语法错误,无法识别的表达式:javascript:TagPopup\u OpenForm(,syntax,expression,Syntax,Expression,我收到这个错误。它在本地主机上运行得很好 错误:语法错误,无法识别的表达式:javascript:TagPopup_OpenForm(“TagPopup_FormContainer1”、“TagPopup_FormContainerBody1”、“TagPopup_FormContainerFooter1”) 这是我在wordpress插件中的快捷码函数 $siteurl = "'" . home_url() . "'"; $close = 'javascript:TagPopup_HideF

我收到这个错误。它在本地主机上运行得很好

错误:语法错误,无法识别的表达式:javascript:TagPopup_OpenForm(“TagPopup_FormContainer1”、“TagPopup_FormContainerBody1”、“TagPopup_FormContainerFooter1”)

这是我在wordpress插件中的快捷码函数

$siteurl = "'" . home_url() . "'";

$close = 'javascript:TagPopup_HideForm("TagPopup_FormContainer1","TagPopup_FormContainerFooter1");';
$open = 'javascript:TagPopup_OpenForm("TagPopup_FormContainer1","TagPopup_FormContainerBody1","TagPopup_FormContainerFooter1");';

$html = "<a href='" . $open . "'><div class='login-user'>login</div></a>";
$html .= "<div style='display: none;' id='TagPopup_FormContainer1'>";
$html .= "<div id='TagPopup_FormContainerHeader'>";

$html .= '<div id="TagPopup_FormClose"><a href="' . $close . '">' . __('X', 'tag-popup') . '</a></div>';
$html .= '<div id="TagPopup_FormTitle"> ' . __('', 'tag-popup') . wpautop(wp_kses_post($pull_atts['title']));
$html .= '</div>';
$html .= '</div>';
$html .= '<br><hr>';
$html .= '<div id="TagPopup_FormContainerBody1">';

$html .= '<form method="post" action="" name="single_form" id="id_single_Form" onsubmit="return validation_login(this)">';


$html .= '<div id="username-div">';
$html .= '<input name="username" class="username" type="text" id="id_username_login" Placeholder="Username" maxlength="120">';
$html .= '</div>';

$html .= '<div id="password-div">';
$html .= '<input name="password" class="password" type="password" id="id_password_login" Placeholder="Password" maxlength="120">';
$html .= '</div>';

$html .= '<div id="TagPopup_FormLabel_Page">';
$html .= '<input type="submit" name="login" class="login_submit" value="Login" >';

if (!is_home()) {
    $html .= '<a href=' . home_url() . ' style="float:left;#aaffff !important"> < Homepage</a>';
}

$html .= '<a href="' . get_permalink() . '?new_user=1">New user?</a>';
$html .= '</div>';
$html .= '</form>';
$html .= '</div>';
$html .= '</div>';
$html .= '<div style="display: none;" id="TagPopup_FormContainerFooter1"></div>';

return $html;
$siteurl=“””.home_url().“”;
$close='javascript:TagPopup_HideForm(“TagPopup_FormContainer1”,“TagPopup_FormContainerFooter1”);
$open='javascript:TagPopup_OpenForm(“TagPopup_FormContainer1”、“TagPopup_FormContainerBody1”、“TagPopup_FormContainerFooter1”);
$html=“”;
$html.=”;
$html.=”;
$html.='';
$html.=''.'.''.'标记弹出').wpautop(wp_kses_post($pull_atts['title'));
$html.='';
$html.='';
$html.='

'; $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; 如果(!is_home()){ $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; $html.=''; 返回$html;
}