WP-Paginate - Version 2.0.7

Version Description

  • Fixed issue with not applying before and after function arguments
Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

Files changed (4) hide show
  1. I18n/wp-paginate.mo +0 -0
  2. I18n/wp-paginate.pot +107 -91
  3. readme.txt +6 -3
  4. wp-paginate.php +11 -6
I18n/wp-paginate.mo CHANGED
Binary file
I18n/wp-paginate.pot CHANGED
@@ -7,9 +7,9 @@ msgid ""
7
msgstr ""
8
"Project-Id-Version: WP-Paginate 1.33\n"
9
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-paginate\n"
10
- "POT-Creation-Date: 2017-01-31 14:37+0100\n"
11
- "PO-Revision-Date: 2017-01-31 14:37+0100\n"
12
- "Last-Translator: Maxgalleria <support@maxfoundry.com>\n"
13
"Language-Team: <support@maxfoundry.com>\n"
14
"Language: en_US\n"
15
"MIME-Version: 1.0\n"
@@ -22,227 +22,235 @@ msgstr ""
22
"X-Poedit-KeywordsList: __;_e\n"
23
"X-Poedit-SearchPath-0: ..\n"
24
25
- #: ../wp-paginate.php:129
26
msgid "Function only"
27
msgstr ""
28
29
- #: ../wp-paginate.php:130
30
msgid "Below the Content"
31
msgstr ""
32
33
- #: ../wp-paginate.php:131
34
msgid "Above the Content"
35
msgstr ""
36
37
- #: ../wp-paginate.php:132
38
msgid "Above and Below the Content"
39
msgstr ""
40
41
- #: ../wp-paginate.php:136
42
msgid "inherit"
43
msgstr ""
44
45
- #: ../wp-paginate.php:137
46
msgid "initial"
47
msgstr ""
48
49
- #: ../wp-paginate.php:138
50
msgid "Arial"
51
msgstr ""
52
53
- #: ../wp-paginate.php:139
54
msgid "Georgia"
55
msgstr ""
56
57
- #: ../wp-paginate.php:140
58
msgid "Tahoma"
59
msgstr ""
60
61
- #: ../wp-paginate.php:141
62
msgid "Times New Roman"
63
msgstr ""
64
65
- #: ../wp-paginate.php:142
66
msgid "Trebuchet MS"
67
msgstr ""
68
69
- #: ../wp-paginate.php:143
70
msgid "Verdana"
71
msgstr ""
72
73
- #: ../wp-paginate.php:147
74
msgid "Grey Buttons"
75
msgstr ""
76
77
- #: ../wp-paginate.php:148
78
msgid "Blue Buttons"
79
msgstr ""
80
81
- #: ../wp-paginate.php:494 ../wp-paginate.php:550
82
msgid "Settings"
83
msgstr ""
84
85
- #: ../wp-paginate.php:537
86
msgid "Success! Your changes were successfully saved!"
87
msgstr ""
88
89
- #: ../wp-paginate.php:540
90
msgid "Whoops! There was a problem with the data you posted. Please try again."
91
msgstr ""
92
93
- #: ../wp-paginate.php:551
94
msgid "Custom CSS"
95
msgstr ""
96
97
- #: ../wp-paginate.php:552
98
msgid "Upgrade to Pro"
99
msgstr ""
100
101
- #: ../wp-paginate.php:559
102
msgid "General"
103
msgstr ""
104
105
- #: ../wp-paginate.php:562
106
msgid "Pagination Label:"
107
msgstr ""
108
109
- #: ../wp-paginate.php:564
110
msgid "The optional text/HTML to display before the list of pages."
111
msgstr ""
112
113
- #: ../wp-paginate.php:567
114
msgid "Previous Page:"
115
msgstr ""
116
117
- #: ../wp-paginate.php:569
118
msgid "The text/HTML to display for the previous page link."
119
msgstr ""
120
121
- #: ../wp-paginate.php:572
122
msgid "Next Page:"
123
msgstr ""
124
125
- #: ../wp-paginate.php:574
126
msgid "The text/HTML to display for the next page link."
127
msgstr ""
128
129
- #: ../wp-paginate.php:578
130
msgid "Location &amp; Position"
131
msgstr ""
132
133
- #: ../wp-paginate.php:581
134
msgid "Everywhere:"
135
msgstr ""
136
137
- #: ../wp-paginate.php:589
138
msgid "Display pagination everywhere. (Comments pagination not included.)"
139
msgstr ""
140
141
- #: ../wp-paginate.php:592
142
msgid "Home Page:"
143
msgstr ""
144
145
- #: ../wp-paginate.php:600
146
msgid "Display pagination on the home page."
147
msgstr ""
148
149
- #: ../wp-paginate.php:603
150
msgid "Blog Page:"
151
msgstr ""
152
153
- #: ../wp-paginate.php:611
154
msgid "Display pagination on the blog page."
155
msgstr ""
156
157
- #: ../wp-paginate.php:614
158
msgid "Search Page:"
159
msgstr ""
160
161
- #: ../wp-paginate.php:622
162
msgid "Display pagination on the search page."
163
msgstr ""
164
165
- #: ../wp-paginate.php:625
166
msgid "Category Pages:"
167
msgstr ""
168
169
- #: ../wp-paginate.php:633
170
msgid "Display pagination on category pages."
171
msgstr ""
172
173
- #: ../wp-paginate.php:636
174
msgid "Archive Pages:"
175
msgstr ""
176
177
- #: ../wp-paginate.php:644
178
msgid "Display pagination on archive pages."
179
msgstr ""
180
181
- #: ../wp-paginate.php:669
182
msgid "Position:"
183
msgstr ""
184
185
- #: ../wp-paginate.php:683
186
msgid "Where to display the pagination on the page."
187
msgstr ""
188
189
- #: ../wp-paginate.php:686
190
msgid "Hide Standard Pagination:"
191
msgstr ""
192
193
- #: ../wp-paginate.php:694
194
msgid "Hide the standard theme default pagaination."
195
msgstr ""
196
197
- #: ../wp-paginate.php:698
198
msgid "Apperance"
199
msgstr ""
200
201
- #: ../wp-paginate.php:701
202
msgid "Pagination Font:"
203
msgstr ""
204
205
- #: ../wp-paginate.php:715
206
msgid "Select the font to use with the pagination."
207
msgstr ""
208
209
- #: ../wp-paginate.php:718
210
msgid "Button Style:"
211
msgstr ""
212
213
- #: ../wp-paginate.php:746
214
msgid "Advanced Settings"
215
msgstr ""
216
217
- #: ../wp-paginate.php:749
218
msgid "Before Markup:"
219
msgstr ""
220
221
- #: ../wp-paginate.php:751
222
msgid "The HTML markup to display before the pagination code."
223
msgstr ""
224
225
- #: ../wp-paginate.php:754
226
msgid "After Markup:"
227
msgstr ""
228
229
- #: ../wp-paginate.php:756
230
msgid "The HTML markup to display after the pagination code."
231
msgstr ""
232
233
- #: ../wp-paginate.php:759
234
msgid "Markup Display:"
235
msgstr ""
236
237
- #: ../wp-paginate.php:761
238
msgid "Show Before Markup and After Markup, even if the page list is empty?"
239
msgstr ""
240
241
- #: ../wp-paginate.php:764
242
msgid "WP-Paginate CSS File:"
243
msgstr ""
244
245
- #: ../wp-paginate.php:766
246
#, php-format
247
msgid ""
248
"Include the default stylesheet wp-paginate.css? WP-Paginate will first look "
@@ -250,146 +258,154 @@ msgid ""
250
"code>)."
251
msgstr ""
252
253
- #: ../wp-paginate.php:769
254
msgid "Page Range:"
255
msgstr ""
256
257
- #: ../wp-paginate.php:776
258
msgid ""
259
"The number of page links to show before and after the current page. "
260
"Recommended value: 3"
261
msgstr ""
262
263
- #: ../wp-paginate.php:779
264
msgid "Page Anchors:"
265
msgstr ""
266
267
- #: ../wp-paginate.php:786
268
msgid ""
269
"The number of links to always show at beginning and end of pagination. "
270
"Recommended value: 1"
271
msgstr ""
272
273
- #: ../wp-paginate.php:789
274
msgid "Page Gap:"
275
msgstr ""
276
277
- #: ../wp-paginate.php:796
278
msgid ""
279
"The minimum number of pages in a gap before an ellipsis (...) is added. "
280
"Recommended value: 3"
281
msgstr ""
282
283
- #: ../wp-paginate.php:841
284
msgid "Need Support?"
285
msgstr ""
286
287
- #: ../wp-paginate.php:842
288
#, php-format
289
msgid ""
290
"For questions, issues or feature requests, please post them in the %s and "
291
"make sure to tag the post with wp-paginate."
292
msgstr ""
293
294
- #: ../wp-paginate.php:888
295
msgid "You do not have sufficient permissions to edit plugins for this site."
296
msgstr ""
297
298
- #: ../wp-paginate.php:917
299
#, php-format
300
msgid "File %s edited successfully."
301
msgstr ""
302
303
- #: ../wp-paginate.php:919
304
msgid "Not enough permissions to create or update the file"
305
msgstr ""
306
307
- #: ../wp-paginate.php:930
308
msgid "Learn more"
309
msgstr ""
310
311
- #: ../wp-paginate.php:946
312
msgid "These styles will be added to the header on all pages of your site."
313
msgstr ""
314
315
- #: ../wp-paginate.php:950
316
msgid "Editing"
317
msgstr ""
318
319
- #: ../wp-paginate.php:952
320
msgid "Browsing"
321
msgstr ""
322
323
- #: ../wp-paginate.php:955
324
msgid "Activate"
325
msgstr ""
326
327
- #: ../wp-paginate.php:960
328
msgid "Save Changes"
329
msgstr ""
330
331
- #: ../wp-paginate.php:964
332
#, php-format
333
msgid ""
334
"You need to make this files writable before you can save your changes. See "
335
"%s the Codex %s for more information."
336
msgstr ""
337
338
- #: ../wp-paginate.php:1073
339
msgid "Love WP-Paginate?"
340
msgstr ""
341
342
- #: ../wp-paginate.php:1074
343
msgid "Your rating is a big help! We really appreciate it!"
344
msgstr ""
345
346
- #: ../wp-paginate.php:1077
347
msgid "I've already left a review"
348
msgstr ""
349
350
- #: ../wp-paginate.php:1078
351
msgid "Maybe Later"
352
msgstr ""
353
354
- #: ../wp-paginate.php:1079
355
msgid "Sure! I'd love to!"
356
msgstr ""
357
358
- #: ../wp-paginate.php:1091 ../wp-paginate.php:1105
359
msgid "missing nonce!"
360
msgstr ""
361
362
- #: ../wp-paginate.php:1123
363
msgid "maxfoundry logo"
364
msgstr ""
365
366
- #: ../wp-paginate.php:1128
367
msgid "WP PAGINATE PRO"
368
msgstr ""
369
370
- #: ../wp-paginate.php:1131 ../wp-paginate.php:1153
371
msgid "buy now button"
372
msgstr ""
373
374
- #: ../wp-paginate.php:1134
375
msgid "wp-pagination pro logo"
376
msgstr ""
377
378
- #: ../wp-paginate.php:1137
379
msgid ""
380
"WP-Paginate Pro come with 11 Beautiful<br>Preset Layouts and Multi Site "
381
"support!"
382
msgstr ""
383
384
- #: ../wp-paginate.php:1141
385
msgid "WP Pagination Pro buttons styles"
386
msgstr ""
387
388
- #: ../wp-paginate.php:1145
389
msgid ""
390
"Use These Customizer Settings to Get the<br>Exact Look and Feel You Want"
391
msgstr ""
392
393
- #: ../wp-paginate.php:1149
394
msgid "WP Pagination Por button Style customizer"
395
msgstr ""
7
msgstr ""
8
"Project-Id-Version: WP-Paginate 1.33\n"
9
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-paginate\n"
10
+ "POT-Creation-Date: 2020-01-21 08:59-0300\n"
11
+ "PO-Revision-Date: 2020-01-21 08:59-0300\n"
12
+ "Last-Translator: Alan Pasho <apasho@gmail.com>\n"
13
"Language-Team: <support@maxfoundry.com>\n"
14
"Language: en_US\n"
15
"MIME-Version: 1.0\n"
22
"X-Poedit-KeywordsList: __;_e\n"
23
"X-Poedit-SearchPath-0: ..\n"
24
25
+ #: ../wp-paginate.php:130
26
msgid "Function only"
27
msgstr ""
28
29
+ #: ../wp-paginate.php:131
30
msgid "Below the Content"
31
msgstr ""
32
33
+ #: ../wp-paginate.php:132
34
msgid "Above the Content"
35
msgstr ""
36
37
+ #: ../wp-paginate.php:133
38
msgid "Above and Below the Content"
39
msgstr ""
40
41
+ #: ../wp-paginate.php:137
42
msgid "inherit"
43
msgstr ""
44
45
+ #: ../wp-paginate.php:138
46
msgid "initial"
47
msgstr ""
48
49
+ #: ../wp-paginate.php:139
50
msgid "Arial"
51
msgstr ""
52
53
+ #: ../wp-paginate.php:140
54
msgid "Georgia"
55
msgstr ""
56
57
+ #: ../wp-paginate.php:141
58
msgid "Tahoma"
59
msgstr ""
60
61
+ #: ../wp-paginate.php:142
62
msgid "Times New Roman"
63
msgstr ""
64
65
+ #: ../wp-paginate.php:143
66
msgid "Trebuchet MS"
67
msgstr ""
68
69
+ #: ../wp-paginate.php:144
70
msgid "Verdana"
71
msgstr ""
72
73
+ #: ../wp-paginate.php:148
74
msgid "Grey Buttons"
75
msgstr ""
76
77
+ #: ../wp-paginate.php:149
78
msgid "Blue Buttons"
79
msgstr ""
80
81
+ #: ../wp-paginate.php:150
82
+ msgid "Modern Grey Buttons"
83
+ msgstr ""
84
+
85
+ #: ../wp-paginate.php:151
86
+ msgid "Neon Pink Buttons"
87
+ msgstr ""
88
+
89
+ #: ../wp-paginate.php:529 ../wp-paginate.php:586
90
msgid "Settings"
91
msgstr ""
92
93
+ #: ../wp-paginate.php:573
94
msgid "Success! Your changes were successfully saved!"
95
msgstr ""
96
97
+ #: ../wp-paginate.php:576
98
msgid "Whoops! There was a problem with the data you posted. Please try again."
99
msgstr ""
100
101
+ #: ../wp-paginate.php:587
102
msgid "Custom CSS"
103
msgstr ""
104
105
+ #: ../wp-paginate.php:588
106
msgid "Upgrade to Pro"
107
msgstr ""
108
109
+ #: ../wp-paginate.php:596
110
msgid "General"
111
msgstr ""
112
113
+ #: ../wp-paginate.php:599
114
msgid "Pagination Label:"
115
msgstr ""
116
117
+ #: ../wp-paginate.php:601
118
msgid "The optional text/HTML to display before the list of pages."
119
msgstr ""
120
121
+ #: ../wp-paginate.php:604
122
msgid "Previous Page:"
123
msgstr ""
124
125
+ #: ../wp-paginate.php:606
126
msgid "The text/HTML to display for the previous page link."
127
msgstr ""
128
129
+ #: ../wp-paginate.php:609
130
msgid "Next Page:"
131
msgstr ""
132
133
+ #: ../wp-paginate.php:611
134
msgid "The text/HTML to display for the next page link."
135
msgstr ""
136
137
+ #: ../wp-paginate.php:615
138
msgid "Location &amp; Position"
139
msgstr ""
140
141
+ #: ../wp-paginate.php:618
142
msgid "Everywhere:"
143
msgstr ""
144
145
+ #: ../wp-paginate.php:626
146
msgid "Display pagination everywhere. (Comments pagination not included.)"
147
msgstr ""
148
149
+ #: ../wp-paginate.php:629
150
msgid "Home Page:"
151
msgstr ""
152
153
+ #: ../wp-paginate.php:637
154
msgid "Display pagination on the home page."
155
msgstr ""
156
157
+ #: ../wp-paginate.php:640
158
msgid "Blog Page:"
159
msgstr ""
160
161
+ #: ../wp-paginate.php:648
162
msgid "Display pagination on the blog page."
163
msgstr ""
164
165
+ #: ../wp-paginate.php:651
166
msgid "Search Page:"
167
msgstr ""
168
169
+ #: ../wp-paginate.php:659
170
msgid "Display pagination on the search page."
171
msgstr ""
172
173
+ #: ../wp-paginate.php:662
174
msgid "Category Pages:"
175
msgstr ""
176
177
+ #: ../wp-paginate.php:670
178
msgid "Display pagination on category pages."
179
msgstr ""
180
181
+ #: ../wp-paginate.php:673
182
msgid "Archive Pages:"
183
msgstr ""
184
185
+ #: ../wp-paginate.php:681
186
msgid "Display pagination on archive pages."
187
msgstr ""
188
189
+ #: ../wp-paginate.php:706
190
msgid "Position:"
191
msgstr ""
192
193
+ #: ../wp-paginate.php:720
194
msgid "Where to display the pagination on the page."
195
msgstr ""
196
197
+ #: ../wp-paginate.php:723
198
msgid "Hide Standard Pagination:"
199
msgstr ""
200
201
+ #: ../wp-paginate.php:731
202
msgid "Hide the standard theme default pagaination."
203
msgstr ""
204
205
+ #: ../wp-paginate.php:735
206
msgid "Apperance"
207
msgstr ""
208
209
+ #: ../wp-paginate.php:738
210
msgid "Pagination Font:"
211
msgstr ""
212
213
+ #: ../wp-paginate.php:752
214
msgid "Select the font to use with the pagination."
215
msgstr ""
216
217
+ #: ../wp-paginate.php:755
218
msgid "Button Style:"
219
msgstr ""
220
221
+ #: ../wp-paginate.php:785
222
msgid "Advanced Settings"
223
msgstr ""
224
225
+ #: ../wp-paginate.php:788
226
msgid "Before Markup:"
227
msgstr ""
228
229
+ #: ../wp-paginate.php:790
230
msgid "The HTML markup to display before the pagination code."
231
msgstr ""
232
233
+ #: ../wp-paginate.php:793
234
msgid "After Markup:"
235
msgstr ""
236
237
+ #: ../wp-paginate.php:795
238
msgid "The HTML markup to display after the pagination code."
239
msgstr ""
240
241
+ #: ../wp-paginate.php:798
242
msgid "Markup Display:"
243
msgstr ""
244
245
+ #: ../wp-paginate.php:800
246
msgid "Show Before Markup and After Markup, even if the page list is empty?"
247
msgstr ""
248
249
+ #: ../wp-paginate.php:803
250
msgid "WP-Paginate CSS File:"
251
msgstr ""
252
253
+ #: ../wp-paginate.php:805
254
#, php-format
255
msgid ""
256
"Include the default stylesheet wp-paginate.css? WP-Paginate will first look "
258
"code>)."
259
msgstr ""
260
261
+ #: ../wp-paginate.php:812
262
+ msgid "Add trailing slash:"
263
+ msgstr ""
264
+
265
+ #: ../wp-paginate.php:814
266
+ msgid "Adds a trailing slash to the end of pagination links."
267
+ msgstr ""
268
+
269
+ #: ../wp-paginate.php:818
270
msgid "Page Range:"
271
msgstr ""
272
273
+ #: ../wp-paginate.php:825
274
msgid ""
275
"The number of page links to show before and after the current page. "
276
"Recommended value: 3"
277
msgstr ""
278
279
+ #: ../wp-paginate.php:828
280
msgid "Page Anchors:"
281
msgstr ""
282
283
+ #: ../wp-paginate.php:835
284
msgid ""
285
"The number of links to always show at beginning and end of pagination. "
286
"Recommended value: 1"
287
msgstr ""
288
289
+ #: ../wp-paginate.php:838
290
msgid "Page Gap:"
291
msgstr ""
292
293
+ #: ../wp-paginate.php:845
294
msgid ""
295
"The minimum number of pages in a gap before an ellipsis (...) is added. "
296
"Recommended value: 3"
297
msgstr ""
298
299
+ #: ../wp-paginate.php:890
300
msgid "Need Support?"
301
msgstr ""
302
303
+ #: ../wp-paginate.php:891
304
#, php-format
305
msgid ""
306
"For questions, issues or feature requests, please post them in the %s and "
307
"make sure to tag the post with wp-paginate."
308
msgstr ""
309
310
+ #: ../wp-paginate.php:937
311
msgid "You do not have sufficient permissions to edit plugins for this site."
312
msgstr ""
313
314
+ #: ../wp-paginate.php:966
315
#, php-format
316
msgid "File %s edited successfully."
317
msgstr ""
318
319
+ #: ../wp-paginate.php:968
320
msgid "Not enough permissions to create or update the file"
321
msgstr ""
322
323
+ #: ../wp-paginate.php:979
324
msgid "Learn more"
325
msgstr ""
326
327
+ #: ../wp-paginate.php:995
328
msgid "These styles will be added to the header on all pages of your site."
329
msgstr ""
330
331
+ #: ../wp-paginate.php:999
332
msgid "Editing"
333
msgstr ""
334
335
+ #: ../wp-paginate.php:1001
336
msgid "Browsing"
337
msgstr ""
338
339
+ #: ../wp-paginate.php:1004
340
msgid "Activate"
341
msgstr ""
342
343
+ #: ../wp-paginate.php:1009
344
msgid "Save Changes"
345
msgstr ""
346
347
+ #: ../wp-paginate.php:1013
348
#, php-format
349
msgid ""
350
"You need to make this files writable before you can save your changes. See "
351
"%s the Codex %s for more information."
352
msgstr ""
353
354
+ #: ../wp-paginate.php:1122
355
msgid "Love WP-Paginate?"
356
msgstr ""
357
358
+ #: ../wp-paginate.php:1123
359
msgid "Your rating is a big help! We really appreciate it!"
360
msgstr ""
361
362
+ #: ../wp-paginate.php:1126
363
msgid "I've already left a review"
364
msgstr ""
365
366
+ #: ../wp-paginate.php:1127
367
msgid "Maybe Later"
368
msgstr ""
369
370
+ #: ../wp-paginate.php:1128
371
msgid "Sure! I'd love to!"
372
msgstr ""
373
374
+ #: ../wp-paginate.php:1140 ../wp-paginate.php:1154
375
msgid "missing nonce!"
376
msgstr ""
377
378
+ #: ../wp-paginate.php:1172
379
msgid "maxfoundry logo"
380
msgstr ""
381
382
+ #: ../wp-paginate.php:1177
383
msgid "WP PAGINATE PRO"
384
msgstr ""
385
386
+ #: ../wp-paginate.php:1180 ../wp-paginate.php:1202
387
msgid "buy now button"
388
msgstr ""
389
390
+ #: ../wp-paginate.php:1183
391
msgid "wp-pagination pro logo"
392
msgstr ""
393
394
+ #: ../wp-paginate.php:1186
395
msgid ""
396
"WP-Paginate Pro come with 11 Beautiful<br>Preset Layouts and Multi Site "
397
"support!"
398
msgstr ""
399
400
+ #: ../wp-paginate.php:1190
401
msgid "WP Pagination Pro buttons styles"
402
msgstr ""
403
404
+ #: ../wp-paginate.php:1194
405
msgid ""
406
"Use These Customizer Settings to Get the<br>Exact Look and Feel You Want"
407
msgstr ""
408
409
+ #: ../wp-paginate.php:1198
410
msgid "WP Pagination Por button Style customizer"
411
msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
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.2.3
6
- Stable tag: 2.0.6
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -135,7 +135,7 @@ The `wp_paginate()` and `wp_paginate_comments()` functions each takes one option
135
* title - The text/HTML to display before the pagination links
136
* nextpage - The text/HTML to use for the next page link
137
* previouspage - The text/HTML to use for the previous page link
138
- * before - The text/HTML to add before the pagination links
139
* after - The text/HTML to add after the pagination links
140
* empty - Display before markup and after markup code even when the page list is empty
141
* range - The number of page links to show before and after the current page
@@ -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.6 =
163
* Fixed issue with slashes added to URLs containing query strings
164
2
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.3.2
6
+ Stable tag: 2.0.7
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
135
* title - The text/HTML to display before the pagination links
136
* nextpage - The text/HTML to use for the next page link
137
* previouspage - The text/HTML to use for the previous page link
138
+ * before - The text/HTML to add before the pagination links and title
139
* after - The text/HTML to add after the pagination links
140
* empty - Display before markup and after markup code even when the page list is empty
141
* range - The number of page links to show before and after the current page
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.7 =
163
+ * Fixed issue with not applying before and after function arguments
164
+
165
= 2.0.6 =
166
* Fixed issue with slashes added to URLs containing query strings
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.6
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.6';
64
65
/**
66
* @var string The options string name for this plugin
@@ -283,11 +283,14 @@ if (!class_exists('WPPaginate')) {
283
* Pagination based on options/args
284
*/
285
function paginate($args = false) {
286
if ($this->type === 'comments' && !get_option('page_comments'))
287
return;
288
289
$r = wp_parse_args($args, $this->options);
290
extract($r, EXTR_SKIP);
291
292
if(isset($this->options['preset']))
293
$preset = $this->options['preset'];
@@ -299,12 +302,16 @@ if (!class_exists('WPPaginate')) {
299
else
300
$font = 'font-inherit';
301
302
- if(isset($this->options['before']))
303
$before_option = $this->options['before'];
304
else
305
$before_option = '<div class="navigation">';
306
307
- if(isset($this->options['after']))
308
$after_option = $this->options['after'];
309
else
310
$after_option = '</div>';
@@ -410,8 +417,6 @@ if (!class_exists('WPPaginate')) {
410
}
411
$output .= "</ol>";
412
}
413
- //error_log($output);
414
-
415
416
$output .= stripslashes(wp_kses_decode_entities($after));
417
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
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.7';
64
65
/**
66
* @var string The options string name for this plugin
283
* Pagination based on options/args
284
*/
285
function paginate($args = false) {
286
+
287
+
288
if ($this->type === 'comments' && !get_option('page_comments'))
289
return;
290
291
$r = wp_parse_args($args, $this->options);
292
extract($r, EXTR_SKIP);
293
+ //error_log("r " . print_r($r, true));
294
295
if(isset($this->options['preset']))
296
$preset = $this->options['preset'];
302
else
303
$font = 'font-inherit';
304
305
+ if(isset($before))
306
+ $before_option = $before;
307
+ else if(isset($this->options['before']))
308
$before_option = $this->options['before'];
309
else
310
$before_option = '<div class="navigation">';
311
312
+ if(isset($after))
313
+ $after_option = $after;
314
+ else if(isset($this->options['after']))
315
$after_option = $this->options['after'];
316
else
317
$after_option = '</div>';
417
}
418
$output .= "</ol>";
419
}
420
421
$output .= stripslashes(wp_kses_decode_entities($after));
422