WP-PageNavi - Version 2.89.1

Version Description

  • FIXED: before and after args
Download this release

Release Info

Developer GamerZ
Plugin Icon WP-PageNavi
Version 2.89.1
Comparing to
See all releases

Code changes from version 2.89 to 2.89.1

Files changed (3) hide show
  1. core.php +5 -3
  2. readme.txt +4 -1
  3. wp-pagenavi.php +1 -1
core.php CHANGED
@@ -7,15 +7,17 @@
7
  * 'before': (string)
8
  * 'after': (string)
9
  * 'options': (string|array) Used to overwrite options set in WP-Admin -> Settings -> PageNavi
10
- * 'query': (object) A WP_Query instance
 
11
  */
12
  function wp_pagenavi( $args = array() ) {
13
  if ( !is_array( $args ) ) {
14
  $argv = func_get_args();
15
 
16
  $args = array();
17
- foreach ( array( 'before', 'after', 'wrapper_tag', 'wrapper_class', 'options' ) as $i => $key )
18
- $args[ $key ] = isset( $argv[ $i ]) ? $argv[ $i ] : "";
 
19
  }
20
 
21
  $args = wp_parse_args( $args, array(
7
  * 'before': (string)
8
  * 'after': (string)
9
  * 'options': (string|array) Used to overwrite options set in WP-Admin -> Settings -> PageNavi
10
+ *
11
+ * @return void|string
12
  */
13
  function wp_pagenavi( $args = array() ) {
14
  if ( !is_array( $args ) ) {
15
  $argv = func_get_args();
16
 
17
  $args = array();
18
+ foreach ( array( 'before', 'after', 'options' ) as $i => $key ) {
19
+ $args[ $key ] = isset( $argv[ $i ]) ? $argv[ $i ] : '';
20
+ }
21
  }
22
 
23
  $args = wp_parse_args( $args, array(
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://lesterchan.net/site/donation/
4
  Tags: navigation, pagination, paging, pages
5
  Requires at least: 3.2
6
  Tested up to: 4.4
7
- Stable tag: 2.89
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -156,6 +156,9 @@ You can do that like so:
156
  `<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
157
 
158
  == Changelog ==
 
 
 
159
  = 2.89 =
160
  * NEW: wrapper_tag option to allow other HTML tag besides DIV and wrapper_class option to allow other class name besides wp-pagenavi. Props @Mahjouba91.
161
 
4
  Tags: navigation, pagination, paging, pages
5
  Requires at least: 3.2
6
  Tested up to: 4.4
7
+ Stable tag: 2.89.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
156
  `<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
157
 
158
  == Changelog ==
159
+ = 2.89.1 =
160
+ * FIXED: before and after args
161
+
162
  = 2.89 =
163
  * NEW: wrapper_tag option to allow other HTML tag besides DIV and wrapper_class option to allow other class name besides wp-pagenavi. Props @Mahjouba91.
164
 
wp-pagenavi.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-PageNavi
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Adds a more advanced paging navigation to your WordPress blog
6
- Version: 2.89
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-pagenavi
3
  Plugin Name: WP-PageNavi
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Adds a more advanced paging navigation to your WordPress blog
6
+ Version: 2.89.1
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-pagenavi