请在我的服务器上使用我的wordpress主题时出现以下错误,任何人都可以帮助您解决这种情况。
解析错误:语法错误,第1行的/wp-content/themes/BookYourTravel/includes/theme_filters.php中出现意外的T_FUNCTION
这些是该文件中提到的代码
<?php
/** * Remove password email text if option for users to set their own password is enabled in Theme settings. */
function remove_password_email_text ( $text )
{
$let_users_set_pass = of_get_option('let_users_set_pass', 0);
if ($text == 'A password will be e-mailed to you.' && $let_users_set_pass)
$text = '';
return $text;
}
add_filter( 'gettext', 'remove_password_email_text' );
?>
你缺少{
一一}
这里:
if ($text == 'A password will be e-mailed to you.' && $let_users_set_pass)
{ // <-- here is the missing {
$text = '';
return $text;
}
和这里:
} // <-- here is the missing }
add_filter( 'gettext', 'remove_password_email_text' );
?>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句