Version Description
- Fix inserting of empty style tag
Download this release
Release Info
Developer | AlanP57 |
Plugin | WP-Paginate |
Version | 2.0.9 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 2.0.9
- readme.txt +4 -1
- wp-paginate.php +5 -8
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.4.1
|
6 |
-
Stable tag: 2.0.
|
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.0.8 =
|
163 |
* Tested with Wordpress 5.4.1
|
164 |
|
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.4.1
|
6 |
+
Stable tag: 2.0.9
|
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.0.9 =
|
163 |
+
* Fix inserting of empty style tag
|
164 |
+
|
165 |
= 2.0.8 =
|
166 |
* Tested with Wordpress 5.4.1
|
167 |
|
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.0.
|
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.0.
|
64 |
|
65 |
/**
|
66 |
* @var string The options string name for this plugin
|
@@ -1056,10 +1056,6 @@ if (!class_exists('WPPaginate')) {
|
|
1056 |
|
1057 |
function wpp_print_style() {
|
1058 |
$this->get_options();
|
1059 |
-
//global $pgntn_options;
|
1060 |
-
?>
|
1061 |
-
<style type="text/css">
|
1062 |
-
<?php
|
1063 |
$classes = '';
|
1064 |
if(isset($this->options['hide-standard-pagination']) && $this->options['hide-standard-pagination']) {
|
1065 |
//$hide_comments
|
@@ -1087,14 +1083,15 @@ if (!class_exists('WPPaginate')) {
|
|
1087 |
$classes .= $pgntn_options['additional_pagination_style'];
|
1088 |
}
|
1089 |
if ( ! empty( $classes ) ) {
|
|
|
1090 |
echo $classes . ' {
|
1091 |
display: none !important;
|
1092 |
}
|
1093 |
.single-gallery .pagination.gllrpr_pagination {
|
1094 |
display: block !important;
|
1095 |
}';
|
1096 |
-
|
1097 |
-
|
1098 |
<?php }
|
1099 |
|
1100 |
public function show_wpp_admin_notice() {
|
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.0.9
|
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.0.9';
|
64 |
|
65 |
/**
|
66 |
* @var string The options string name for this plugin
|
1056 |
|
1057 |
function wpp_print_style() {
|
1058 |
$this->get_options();
|
|
|
|
|
|
|
|
|
1059 |
$classes = '';
|
1060 |
if(isset($this->options['hide-standard-pagination']) && $this->options['hide-standard-pagination']) {
|
1061 |
//$hide_comments
|
1083 |
$classes .= $pgntn_options['additional_pagination_style'];
|
1084 |
}
|
1085 |
if ( ! empty( $classes ) ) {
|
1086 |
+
echo '<style type="text/css">' . PHP_EOL;
|
1087 |
echo $classes . ' {
|
1088 |
display: none !important;
|
1089 |
}
|
1090 |
.single-gallery .pagination.gllrpr_pagination {
|
1091 |
display: block !important;
|
1092 |
}';
|
1093 |
+
echo '</style>' . PHP_EOL;
|
1094 |
+
} ?>
|
1095 |
<?php }
|
1096 |
|
1097 |
public function show_wpp_admin_notice() {
|