diff --git a/functions/moods.php b/functions/moods.php index 40d9f42..e2b2aa8 100644 --- a/functions/moods.php +++ b/functions/moods.php @@ -75,7 +75,7 @@ function comicpress_showmood_edit_post() { $newmood = $newmood[0]; ?>

diff --git a/functions/wp-pagenavi.php b/functions/wp-pagenavi.php index 4df41d0..d31852d 100644 --- a/functions/wp-pagenavi.php +++ b/functions/wp-pagenavi.php @@ -92,9 +92,15 @@ if ($comicpress_options['enable_numbered_pagination']) { echo '
  • '.$pagenavi_options['dotleft_text'].'
  • '; } } - echo '
  • '; - previous_posts_link($pagenavi_options['prev_text']); - echo '
  • '; + $prev_post_link = get_previous_posts_link( $pagenavi_options['prev_text'] ); + + if (!empty($prev_post_link)) { + echo "
  • \r\n"; + echo $prev_post_link . "\r\n"; + echo "
  • \r\n"; + } + + for($i = $start_page; $i <= $end_page; $i++) { if($i == $paged) { $current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']); @@ -104,9 +110,12 @@ if ($comicpress_options['enable_numbered_pagination']) { echo '
  • '.$page_text.'
  • '; } } - echo '
  • '; - next_posts_link($pagenavi_options['next_text'], $max_page); - echo '
  • '; + $next_post_link = get_next_posts_link($pagenavi_options['next_text'], $max_page); + if (!empty($next_post_link)) { + echo "
  • \r\n"; + echo $next_post_link ."\r\n"; + echo "
  • \r\n"; + } if ($end_page < $max_page) { if(!empty($pagenavi_options['dotright_text'])) { echo '
  • '.$pagenavi_options['dotright_text'].'
  • ';