Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

localization fix w/removal of option usage for wp-pagenavi code #smac…

…kslesterchan

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
commit 1441cb9f5e089db2bb1569ab85977523a89aa11d 1 parent e143398
Philip M. Hofer (Frumph) authored
Showing with 3 additions and 3 deletions.
  1. +1 −0  changelog.txt
  2. +2 −3 functions/wp-pagenavi.php
View
1  changelog.txt
@@ -15,6 +15,7 @@ added option to show first comic on the home page
added s at the end of comments for multiple comics in the comments widget
added setup_postdata in the comments widget to properly access data
if disable_blog_frontpage is enabled, allow comments to be displayed on comic posts on home page if comic post is shown
+wp-pagenavi.php internalization fix w/removal of usage of an option
2.9.2.29.1
$is_comic needed to be set in the archive.php before hand, was giving notice
View
5 functions/wp-pagenavi.php
@@ -31,12 +31,11 @@
### Function: Page Navigation: Boxed Style Paging
function comicpress_wp_pagenavi($before = '', $after = '') {
global $wpdb, $wp_query;
- comicpress_pagenavi_init(); //Calling the pagenavi_init() function
+ $pagenavi_options = comicpress_pagenavi_init(); //Calling the pagenavi_init() function
if (!is_single()) {
$request = $wp_query->request;
$posts_per_page = intval(get_query_var('posts_per_page'));
$paged = intval(get_query_var('paged'));
- $pagenavi_options = get_option('pagenavi_options');
$numposts = $wp_query->found_posts;
$max_page = $wp_query->max_num_pages;
/*
@@ -166,7 +165,7 @@ function comicpress_pagenavi_init() {
$pagenavi_options['style'] = 1;
$pagenavi_options['num_pages'] = 5;
$pagenavi_options['always_show'] = 0;
- add_option('pagenavi_options', $pagenavi_options, false, true);
+ return $pagenavi_options;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.