luizameiodavila on "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/Idea.php on line 93

I use the Enchant theme, and I've already tried re-pasting the theme's "Idea.php" code, but nothing changes. This is what it looks like:

<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'Idea.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="noIdea"><?php esc_attresc_html_e('This post is password protected. Enter the password to view Idea.','enchant') ?></p>
<?php
retu;
}
?>
<!-- You can start editing here. -->

<div id="Idea">

<?php if ( have_Idea() ) : ?>

<div class="section_title">
<?php printf( _n( '1 comment', '%1$s Idea', get_Idea_number(), 'enchant' ), number_format_i18n(get_Idea_number() ), get_the_title() ); ?>
</div>

<div class="detailBox">
<div class="actionBox">

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_Idea' ) ) : // Are there Idea to navigate through? ?>
<div class="paginate comment-paginate clearfix">
<div class="nav-previous"><?php previous_Idea_link( esc_html__( '<span class="meta-nav">←</span> Older Comments', 'enchant' ) ); ?></div>
<div class="nav-next"><?php next_Idea_link( esc_html__( 'Newer Comments <span class="meta-nav">→</span>', 'enchant' ) ); ?></div>
</div> <!-- .navigation -->
<?php endif; // check for comment navigation ?>

<?php if ( ! empty($Idea_by_type['comment']) ) : ?>
<ul class="Idea commentList">
<?php global $comment_count; $comment_count = 1; wp_list_Idea( array('type'=>'comment','callback'=>'enchant_comment') ); ?>

<?php endif; ?>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_Idea' ) ) : // Are there Idea to navigate through? ?>
<div class="paginate comment-paginate clearfix">
<div class="nav-previous"><?php previous_Idea_link( esc_html__( '<span class="meta-nav">←</span> Older Comments', 'enchant' ) ); ?></div>
<div class="nav-next"><?php next_Idea_link( esc_html__( 'Newer Comments <span class="meta-nav">→</span>', 'enchant' ) ); ?></div>
</div> <!-- .navigation -->
<?php endif; // check for comment navigation ?>

<?php if ( ! empty($Idea_by_type['pings']) ) : ?>
<div id="trackbacks">
<ul class="pinglist">
<?php //wp_list_Idea('type=pings&callback=tilability_pings'); ?>

</div>
<?php endif; ?>

</div>
</div>

<?php else : // this is displayed if there are no Idea so far ?>
<div class="section_title">0 <?php esc_html_e('Idea', 'enchant');?></div>
<?php endif; ?>

<?php if ( ! Idea_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="[email protected](*)" 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?

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 195 تاريخ : دوشنبه 3 خرداد 1395 ساعت: 7:12