-5
任何人都知道我在这里做错了吗?我有一个Wordpress儿童主题中的functions.php文件中的代码。PHP的帮助?解析错误:语法错误,第6行的意外T_STRING
<?php
function my_password_form() {
global $post;
$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
$o = '<form action="' . esc_url(site_url('wp-login.php?action=postpass', 'login_post')) . '" method="post">
' . __("This content is CLASSIFIED, for subscribers only! To get access, <a href="http://maryefern.com/join">join here</a>, check your e-mail for a message from me with the password, and enter it below:") . '
<label for="' . $label . '">' . __("Password:") . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" maxlength="20" /><input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" />
</form>
';
return $o;
}
add_filter('the_password_form', 'my_password_form');
?>
看语法高亮,你会看到。 – ceejayoz 2015-02-09 21:03:44