WP-Paginate - Version 2.1.2

Version Description

  • Added code to fix PHP warning message
Download this release

Release Info

Developer AlanP57
Plugin Icon 128x128 WP-Paginate
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wp-paginate.php +13 -13
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: maxfoundry, emartin24, AlanP57
3
  Tags: paginate, pagination, navigation, page, wp-paginate, comments, rtl, seo, usability
4
  Requires at least: 2.6.0 (2.7.0 for comments pagination)
5
  Tested up to: 5.5
6
- Stable tag: 2.1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -159,6 +159,9 @@ Example (also applies to `wp_paginate_comments()`):
159
  When calling `wp_paginate_comments()`, WP-Paginate adds an extra class to the `ol` element, `wp-paginate-comments`.
160
 
161
  == Changelog ==
 
 
 
162
  = 2.1.1 =
163
  * Added setting to remove ellipses from pagination links
164
  * Added code to load jquery-migrate
3
  Tags: paginate, pagination, navigation, page, wp-paginate, comments, rtl, seo, usability
4
  Requires at least: 2.6.0 (2.7.0 for comments pagination)
5
  Tested up to: 5.5
6
+ Stable tag: 2.1.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
159
  When calling `wp_paginate_comments()`, WP-Paginate adds an extra class to the `ol` element, `wp-paginate-comments`.
160
 
161
  == Changelog ==
162
+ = 2.1.2 =
163
+ * Added code to fix PHP warning message
164
+
165
  = 2.1.1 =
166
  * Added setting to remove ellipses from pagination links
167
  * Added code to load jquery-migrate
wp-paginate.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-Paginate
4
  Plugin URI: https://wordpress.org/plugins/wp-paginate/
5
  Description: A simple and flexible pagination plugin for WordPress posts and comments.
6
- Version: 2.1.1
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: 'wp-paginate'
@@ -60,7 +60,7 @@ if (!class_exists('WPPaginate')) {
60
  /**
61
  * @var string The plugin version
62
  */
63
- public $version = '2.1.1';
64
 
65
  /**
66
  * @var string The options string name for this plugin
@@ -364,9 +364,9 @@ if (!class_exists('WPPaginate')) {
364
  if (strlen(stripslashes($title)) > 0) {
365
  $output .= sprintf('<li><span class="title">%s</span></li>', stripslashes($title));
366
  }
367
- error_log("hide ellipses " . $this->options['hide-ellipses']);
368
- if($this->options['hide-ellipses'] == true )
369
- $ellipsis = "<li></li>";
370
  else
371
  $ellipsis = "<li><span class='gap'>...</span></li>";
372
 
@@ -771,17 +771,17 @@ if (!class_exists('WPPaginate')) {
771
  </tr>
772
  <tr valign="top">
773
  <th scope="row"><?php _e('Button Style:', 'wp-paginate'); ?></th>
774
- <input type='hidden' value='<?php echo $this->options['preset']; ?>' name='preset' id='preset'>
 
 
 
 
 
 
 
775
  <td>
776
  <p>Choose a preset style from the list below.</p>
777
  <table class="button-styles">
778
- <?php
779
- if(isset($this->options['preset'])) {
780
- $preset_option = $this->options['preset'];
781
- } else {
782
- $preset_option = 'default';
783
- }
784
- ?>
785
  <?php foreach($this->presets as $preset ) { ?>
786
  <tr>
787
  <td>
3
  Plugin Name: WP-Paginate
4
  Plugin URI: https://wordpress.org/plugins/wp-paginate/
5
  Description: A simple and flexible pagination plugin for WordPress posts and comments.
6
+ Version: 2.1.2
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: 'wp-paginate'
60
  /**
61
  * @var string The plugin version
62
  */
63
+ public $version = '2.1.2';
64
 
65
  /**
66
  * @var string The options string name for this plugin
364
  if (strlen(stripslashes($title)) > 0) {
365
  $output .= sprintf('<li><span class="title">%s</span></li>', stripslashes($title));
366
  }
367
+
368
+ if(isset($this->options['hide-ellipses']) && $this->options['hide-ellipses'] == true )
369
+ $ellipsis = "<li class='ellipse-gap'></li>";
370
  else
371
  $ellipsis = "<li><span class='gap'>...</span></li>";
372
 
771
  </tr>
772
  <tr valign="top">
773
  <th scope="row"><?php _e('Button Style:', 'wp-paginate'); ?></th>
774
+ <?php
775
+ if(isset($this->options['preset'])) {
776
+ $preset_option = $this->options['preset'];
777
+ } else {
778
+ $preset_option = 'default';
779
+ }
780
+ ?>
781
+ <input type='hidden' value='<?php echo $preset_option; ?>' name='preset' id='preset'>
782
  <td>
783
  <p>Choose a preset style from the list below.</p>
784
  <table class="button-styles">
 
 
 
 
 
 
 
785
  <?php foreach($this->presets as $preset ) { ?>
786
  <tr>
787
  <td>