Fatal error: esc_attresc_html__(
-
Hi,
I’m setting up my blog – atlasdoartista.com.br – and I keep getting this message at the bottom of my posts:
Fatal error: Call to undefined function esc_attresc_html__() in /home/atlas486/public_html/wp-content/themes/enchant/comments.php on line 93
I use the Enchant theme, and I’ve already tried re-pasting the theme’s “comments.php” code, but nothing changes. This is what it looks like:
<?php
// Do not delete these lines
if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
die (esc_attresc_html_e(‘Please do not load this page directly. Thanks!’,’enchant’));if ( post_password_required() ) { ?>
<p class=”nocomments”><?php esc_attresc_html_e(‘This post is password protected. Enter the password to view comments.’,’enchant’) ?></p>
<?php
return;
}
?>
<!– You can start editing here. –><div id=”comments”>
<?php if ( have_comments() ) : ?>
<div class=”section_title”>
<?php printf( _n( ‘1 comment’, ‘%1$s comments’, get_comments_number(), ‘enchant’ ), number_format_i18n(get_comments_number() ), get_the_title() ); ?>
</div><div class=”detailBox”>
<div class=”actionBox”><?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // Are there comments to navigate through? ?>
<div class=”paginate comment-paginate clearfix”>
<div class=”nav-previous”><?php previous_comments_link( esc_html__( ‘<span class=”meta-nav”>←</span> Older Comments’, ‘enchant’ ) ); ?></div>
<div class=”nav-next”><?php next_comments_link( esc_html__( ‘Newer Comments <span class=”meta-nav”>→</span>’, ‘enchant’ ) ); ?></div>
</div> <!– .navigation –>
<?php endif; // check for comment navigation ?><?php if ( ! empty($comments_by_type[‘comment’]) ) : ?>
<ul class=”comments commentList”>
<?php global $comment_count; $comment_count = 1; wp_list_comments( array(‘type’=>’comment’,’callback’=>’enchant_comment’) ); ?><?php endif; ?>
<?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // Are there comments to navigate through? ?>
<div class=”paginate comment-paginate clearfix”>
<div class=”nav-previous”><?php previous_comments_link( esc_html__( ‘<span class=”meta-nav”>←</span> Older Comments’, ‘enchant’ ) ); ?></div>
<div class=”nav-next”><?php next_comments_link( esc_html__( ‘Newer Comments <span class=”meta-nav”>→</span>’, ‘enchant’ ) ); ?></div>
</div> <!– .navigation –>
<?php endif; // check for comment navigation ?><?php if ( ! empty($comments_by_type[‘pings’]) ) : ?>
<div id=”trackbacks”>
<ul class=”pinglist”>
<?php //wp_list_comments(‘type=pings&callback=tilability_pings’); ?></div>
<?php endif; ?></div>
</div><?php else : // this is displayed if there are no comments so far ?>
<div class=”section_title”>0 <?php esc_html_e(‘comments’, ‘enchant’);?></div>
<?php endif; ?><?php if ( ! comments_open() ) : ?>
<div class=”section_title”><?php esc_html_e( ‘Comments are closed.’, ‘enchant’ ); ?></div>
<?php endif; ?><?php if (‘open’ == $post->comment_status) : ?>
<?php
$commenter = wp_get_current_commenter();
$req = get_option( ‘require_name_email’ );
$aria_req = ( $req ? ” aria-required=’true'” : ” );
if($commenter[‘comment_author’] != ”)
$name = esc_attr($commenter[‘comment_author’]);
else
$name = ”;
if($commenter[‘comment_author_email’] != ”)
$email = esc_attr($commenter[‘comment_author_email’]);
else
$email = ”;
if($commenter[‘comment_author_url’] != ”)
$url = esc_attr($commenter[‘comment_author_url’]);
else
$url = ”;
$fields = array(
‘author’ => ‘<input id=”author” placeholder=”John Doe(*)” name=”author” type=”text” value=”‘ . $name . ‘” ‘ . $aria_req . ‘ />’,
’email’ => ‘<input id=”email” placeholder=”john@doe.com(*)” name=”email” type=”text” value=”‘ . $email . ‘” ‘ . $aria_req . ‘ />’,
‘url’ => ‘<input id=”url” placeholder=”http://example.com” name=”url” type=”text” value=”‘ . $url . ‘” />’
);$comment_textarea = ‘<div class=”form-group”>
<textarea class=”form-control” placeholder=”Your Message…(*)” id=”comment” name=”comment” aria-required=”true”></textarea>
</div>’;
comment_form( array( ‘fields’ => $fields, ‘comment_field’ => $comment_textarea, ‘id_submit’ => ‘contact_submit’, ‘label_submit’ => esc_html__( ‘Submit Comment’, ‘enchant’ ), ‘title_reply’ => ‘<div class=”section_title add_yours”>’ . esc_attresc_html__( ‘Leave a Reply’, ‘enchant’ ) . ‘</div>’, ‘title_reply_to’ => ‘<div class=”section_title add_yours”>’ . esc_attresc_html__( ‘Leave a Reply to %s’, ‘enchant’ ) . ‘</div>’) ); ?>
<?php endif; //comment status if ?></div>
Can anyone please help me out?
- The topic ‘Fatal error: esc_attresc_html__(’ is closed to new replies.