Can anyone suggest a solution...
I've just installed a new WP theme (Glass) that looks great except for an irritating little error in single posts:
Fatal error: Call to undefined function: post_password_required() in /home/mysite.com/public_html/blog/wp-content/themes/glass/comments.php on line 5
appears at the bottom of the page and the sidebar is also missing.
I've included the first few lines of comments.php below:
<?php // Do not delete these lines
if (isset($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.',"glass"); ?></p>
<?php
return;
}
?>
<!-- You can start editing here. -->
Any suggestions you could give would be great. I'm not a php fundi. i just basically muddle along testing and trying things to see how they work out. I haven't changed anything in this theme at all yet.
Thanks in advance for your help.
-
mywebwork -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[578942].message }}-
Hunter06 -
Thanks
{{ DiscussionBoard.errors[580512].message }} -
-
-
mywebwork -
Thanks - 1 reply
{{ DiscussionBoard.errors[581840].message }}-
Hunter06 -
Thanks
{{ DiscussionBoard.errors[583022].message }} -
-