Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/accelera.../componen.../post-nav...
File: post-navigation.php
<?php
[0] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[1] Fix | Delete
exit;
[2] Fix | Delete
}
[3] Fix | Delete
function ampforwp_framework_get_post_navigation(){
[4] Fix | Delete
global $redux_builder_amp;
[5] Fix | Delete
if($redux_builder_amp['enable-single-next-prev']) { ?>
[6] Fix | Delete
<div id="pagination">
[7] Fix | Delete
<div class="next">
[8] Fix | Delete
<?php $next_post = get_next_post();
[9] Fix | Delete
if (!empty( $next_post )) {
[10] Fix | Delete
$next_text = $next_post->post_title;
[11] Fix | Delete
$next_link = ampforwp_url_controller( get_permalink( $next_post->ID ));
[12] Fix | Delete
if(true == ampforwp_get_setting('single-next-prev-to-nonamp')){
[13] Fix | Delete
$next_link = get_permalink( $next_post->ID );
[14] Fix | Delete
} ?>
[15] Fix | Delete
<a href="<?php echo esc_url($next_link); ?>"><span><?php
[16] Fix | Delete
if (function_exists('pll__')) {
[17] Fix | Delete
echo pll__(esc_html__( ampforwp_get_setting('amp-translator-next-text'), 'accelerated-mobile-pages'));
[18] Fix | Delete
}else {
[19] Fix | Delete
echo ampforwp_translation(ampforwp_get_setting('amp-translator-next-text'), 'Next' );
[20] Fix | Delete
} ?>
[21] Fix | Delete
</span><?php echo apply_filters('ampforwp_next_link',$next_text ); ?> &raquo;</a> <?php
[22] Fix | Delete
} ?>
[23] Fix | Delete
</div>
[24] Fix | Delete
[25] Fix | Delete
<div class="prev">
[26] Fix | Delete
<?php $prev_post = get_previous_post();
[27] Fix | Delete
if (!empty( $prev_post )) {
[28] Fix | Delete
$prev_text = $prev_post->post_title;
[29] Fix | Delete
$prev_link = ampforwp_url_controller( get_permalink( $prev_post->ID ));
[30] Fix | Delete
if(true == ampforwp_get_setting('single-next-prev-to-nonamp')){
[31] Fix | Delete
$prev_link = get_permalink( $prev_post->ID );
[32] Fix | Delete
} ?>
[33] Fix | Delete
<a href="<?php echo esc_url($prev_link); ?>"><span><?php
[34] Fix | Delete
if (function_exists('pll__')) {
[35] Fix | Delete
echo pll__(esc_html__( ampforwp_get_setting('amp-translator-previous-text'), 'accelerated-mobile-pages'));
[36] Fix | Delete
}else {
[37] Fix | Delete
echo ampforwp_translation(ampforwp_get_setting('amp-translator-previous-text'), 'Next' );
[38] Fix | Delete
} ?></span> &laquo; <?php echo apply_filters('ampforwp_prev_link',$prev_text ); ?></a> <?php
[39] Fix | Delete
} ?>
[40] Fix | Delete
</div>
[41] Fix | Delete
[42] Fix | Delete
<div class="clearfix"></div>
[43] Fix | Delete
</div>
[44] Fix | Delete
<?php }
[45] Fix | Delete
}
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function