Version Description
Download this release
Release Info
Developer | GamerZ |
Plugin | WP-PageNavi |
Version | 2.94.0 |
Comparing to | |
See all releases |
Code changes from version 2.93.4 to 2.94.0
- core.php +8 -4
- readme.txt +6 -2
- wp-pagenavi.php +1 -1
core.php
CHANGED
@@ -97,7 +97,8 @@ function wp_pagenavi( $args = array() ) {
|
|
97 |
// First
|
98 |
$first_text = str_replace( '%TOTAL_PAGES%', number_format_i18n( $total_pages ), __( $options['first_text'], 'wp-pagenavi' ) );
|
99 |
$out .= $instance->get_single( 1, $first_text, array(
|
100 |
-
'class' => $class_names['first']
|
|
|
101 |
), '%TOTAL_PAGES%' );
|
102 |
}
|
103 |
|
@@ -105,7 +106,8 @@ function wp_pagenavi( $args = array() ) {
|
|
105 |
if ( $paged > 1 && !empty( $options['prev_text'] ) ) {
|
106 |
$out .= $instance->get_single( $paged - 1, $options['prev_text'], array(
|
107 |
'class' => $class_names['previouspostslink'],
|
108 |
-
'rel' => 'prev'
|
|
|
109 |
) );
|
110 |
}
|
111 |
|
@@ -176,7 +178,8 @@ function wp_pagenavi( $args = array() ) {
|
|
176 |
if ( $paged < $total_pages && !empty( $options['next_text'] ) ) {
|
177 |
$out .= $instance->get_single( $paged + 1, $options['next_text'], array(
|
178 |
'class' => $class_names['nextpostslink'],
|
179 |
-
'rel' => 'next'
|
|
|
180 |
) );
|
181 |
}
|
182 |
|
@@ -184,6 +187,7 @@ function wp_pagenavi( $args = array() ) {
|
|
184 |
// Last
|
185 |
$out .= $instance->get_single( $total_pages, __( $options['last_text'], 'wp-pagenavi' ), array(
|
186 |
'class' => $class_names['last'],
|
|
|
187 |
), '%TOTAL_PAGES%' );
|
188 |
}
|
189 |
break;
|
@@ -213,7 +217,7 @@ function wp_pagenavi( $args = array() ) {
|
|
213 |
}
|
214 |
$out = $before . "<" . $wrapper_tag . " class='" . $wrapper_class . "' role='navigation'>\n$out\n</" . $wrapper_tag . ">" . $after;
|
215 |
|
216 |
-
$out = apply_filters( 'wp_pagenavi', $out );
|
217 |
|
218 |
if ( !$echo )
|
219 |
return $out;
|
97 |
// First
|
98 |
$first_text = str_replace( '%TOTAL_PAGES%', number_format_i18n( $total_pages ), __( $options['first_text'], 'wp-pagenavi' ) );
|
99 |
$out .= $instance->get_single( 1, $first_text, array(
|
100 |
+
'class' => $class_names['first'],
|
101 |
+
'aria-label' => __('First Page'),
|
102 |
), '%TOTAL_PAGES%' );
|
103 |
}
|
104 |
|
106 |
if ( $paged > 1 && !empty( $options['prev_text'] ) ) {
|
107 |
$out .= $instance->get_single( $paged - 1, $options['prev_text'], array(
|
108 |
'class' => $class_names['previouspostslink'],
|
109 |
+
'rel' => 'prev',
|
110 |
+
'aria-label' => __('Previous Page'),
|
111 |
) );
|
112 |
}
|
113 |
|
178 |
if ( $paged < $total_pages && !empty( $options['next_text'] ) ) {
|
179 |
$out .= $instance->get_single( $paged + 1, $options['next_text'], array(
|
180 |
'class' => $class_names['nextpostslink'],
|
181 |
+
'rel' => 'next',
|
182 |
+
'aria-label' => __('Next Page'),
|
183 |
) );
|
184 |
}
|
185 |
|
187 |
// Last
|
188 |
$out .= $instance->get_single( $total_pages, __( $options['last_text'], 'wp-pagenavi' ), array(
|
189 |
'class' => $class_names['last'],
|
190 |
+
'aria-label' => __('Last Page'),
|
191 |
), '%TOTAL_PAGES%' );
|
192 |
}
|
193 |
break;
|
217 |
}
|
218 |
$out = $before . "<" . $wrapper_tag . " class='" . $wrapper_class . "' role='navigation'>\n$out\n</" . $wrapper_tag . ">" . $after;
|
219 |
|
220 |
+
$out = apply_filters( 'wp_pagenavi', $out, $args );
|
221 |
|
222 |
if ( !$echo )
|
223 |
return $out;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: GamerZ, scribu
|
|
3 |
Donate link: https://lesterchan.net/site/donation/
|
4 |
Tags: navigation, pagination, paging, pages
|
5 |
Requires at least: 3.2
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -147,6 +147,10 @@ You can do that like so:
|
|
147 |
`<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
|
148 |
|
149 |
## Changelog
|
|
|
|
|
|
|
|
|
150 |
### 2.93.4
|
151 |
* FIXED: Update SCB Framework To Support PHP 8
|
152 |
|
3 |
Donate link: https://lesterchan.net/site/donation/
|
4 |
Tags: navigation, pagination, paging, pages
|
5 |
Requires at least: 3.2
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 2.94.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
147 |
`<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
|
148 |
|
149 |
## Changelog
|
150 |
+
### 2.94.0
|
151 |
+
* NEW: Add args param on wp_pagenavi filter. Props @asadowski10
|
152 |
+
* NEW: Improve accessibility of nav links. Props @carlabobak
|
153 |
+
|
154 |
### 2.93.4
|
155 |
* FIXED: Update SCB Framework To Support PHP 8
|
156 |
|
wp-pagenavi.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-PageNavi
|
4 |
Plugin URI: https://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds a more advanced paging navigation to your WordPress blog
|
6 |
-
Version: 2.
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: https://lesterchan.net
|
9 |
Text Domain: wp-pagenavi
|
3 |
Plugin Name: WP-PageNavi
|
4 |
Plugin URI: https://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds a more advanced paging navigation to your WordPress blog
|
6 |
+
Version: 2.94.0
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: https://lesterchan.net
|
9 |
Text Domain: wp-pagenavi
|