Version Description
(1-March-2021) =
* New: Clear YARPP cache button on settings page
* [Bugfix])(https://wordpress.org/support/topic/undefined-variable-post_types/) Undefined variable `$post_types
Download this release
Release Info
Developer | mnelson4 |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 5.13.0 |
Comparing to | |
See all releases |
Code changes from version 5.12.0 to 5.13.0
- includes/phtmls/yarpp_options.phtml +5 -0
- js/options_basic.js +28 -0
- readme.txt +11 -5
- yarpp.php +2 -2
includes/phtmls/yarpp_options.phtml
CHANGED
@@ -46,6 +46,11 @@
|
|
46 |
<span class="spinner yarpp-no-float"></span>
|
47 |
<?php wp_nonce_field( 'update_yarpp', 'update_yarpp-nonce' ); ?>
|
48 |
</div>
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
</div>
|
51 |
|
46 |
<span class="spinner yarpp-no-float"></span>
|
47 |
<?php wp_nonce_field( 'update_yarpp', 'update_yarpp-nonce' ); ?>
|
48 |
</div>
|
49 |
+
<br><br>
|
50 |
+
<div>
|
51 |
+
<p><input type="button" name="yarpp-clear-cache" id="yarpp-clear-cache" class="button-secondary" value="<?php _e("Empty cache", 'yarpp'); ?>"> <label for="yarpp-clear-cache"><small><?php _e('Use this button to manually clear YARPP cache', 'yarpp'); ?></small></label></p>
|
52 |
+
<?php wp_nonce_field( 'clear_cache_yarpp', 'clear_cache-nonce' ); ?>
|
53 |
+
</div>
|
54 |
|
55 |
</div>
|
56 |
|
js/options_basic.js
CHANGED
@@ -336,4 +336,32 @@ jQuery(function($) {
|
|
336 |
$(this).text('Show Details [+]');
|
337 |
}
|
338 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
});
|
336 |
$(this).text('Show Details [+]');
|
337 |
}
|
338 |
});
|
339 |
+
$('#yarpp-clear-cache').click(function() {
|
340 |
+
if ( confirm(yarpp_messages.alert_message) ){
|
341 |
+
$.ajax({
|
342 |
+
type:'POST',
|
343 |
+
url: ajaxurl,
|
344 |
+
data: {
|
345 |
+
action: 'yarpp_clear_cache',
|
346 |
+
clear_cache: true,
|
347 |
+
'_ajax_nonce': $('#clear_cache-nonce').val()
|
348 |
+
},
|
349 |
+
success:function(data){
|
350 |
+
if( 'success' == data ) {
|
351 |
+
var message = yarpp_messages.success;
|
352 |
+
} else if( 'forbidden' == data ) {
|
353 |
+
var message = yarpp_messages.forbidden;
|
354 |
+
} else if( 'nonce_fail' == data ) {
|
355 |
+
var message = yarpp_messages.nonce_fail;
|
356 |
+
} else {
|
357 |
+
var message = yarpp_messages.error;
|
358 |
+
}
|
359 |
+
alert(message);
|
360 |
+
},
|
361 |
+
error:function(data){
|
362 |
+
alert(yarpp_messages.nonce_fail);
|
363 |
+
}
|
364 |
+
});
|
365 |
+
}
|
366 |
+
});
|
367 |
});
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires at least: 3.7
|
|
5 |
Requires PHP: 5.3
|
6 |
License: GPLv2 or later
|
7 |
Tested up to: 5.6
|
8 |
-
Stable tag: 5.
|
9 |
|
10 |
The most popular plugin to display a list of related posts on your site based on a powerful unique algorithm.
|
11 |
|
@@ -309,9 +309,15 @@ add_action(
|
|
309 |
`
|
310 |
|
311 |
== Changelog ==
|
|
|
|
|
|
|
|
|
312 |
= 5.12.0 (22-February-2021) =
|
313 |
-
* New shortcode template attribute. Eg [yarpp template="yarpp-template-photoblog"]
|
314 |
-
*
|
|
|
|
|
315 |
* Bugfix: consistently use "post_type" parameter and "cross-relate" from all YARPP functions
|
316 |
* [Bugfix](https://wordpress.org/support/topic/cannot-be-translated-because-there-is-no-text-domain-description/): Add textdomain to allow translating the readme file
|
317 |
|
@@ -321,7 +327,7 @@ add_action(
|
|
321 |
* Enhancement: YARPP post metabox enhancements - adds "edit" and "view" hover options to each link, mimicking the main posts table
|
322 |
* Enhancement: Add missing debug info
|
323 |
* Bugfix: Avoid REST API warning by providing the page parameter which WP core expects
|
324 |
-
* Deprecated: functions YARPP::maybe_enqueue_thumbnails() and YARPP::enqueue_thumbnails()
|
325 |
|
326 |
= 5.10.2 (23-November-2020) =
|
327 |
* Enhancement: Faster queries and a speed boost ⚡️ (Re-introduces database query improvements while avoiding the fatal error identified by some in v5.10.0)
|
@@ -1079,5 +1085,5 @@ After a break of many years, the plugin is 100% supported now that the baton has
|
|
1079 |
* Initial upload
|
1080 |
|
1081 |
== Upgrade Notice ==
|
1082 |
-
= 5.
|
1083 |
We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
|
5 |
Requires PHP: 5.3
|
6 |
License: GPLv2 or later
|
7 |
Tested up to: 5.6
|
8 |
+
Stable tag: 5.13.0
|
9 |
|
10 |
The most popular plugin to display a list of related posts on your site based on a powerful unique algorithm.
|
11 |
|
309 |
`
|
310 |
|
311 |
== Changelog ==
|
312 |
+
= 5.13.0 (1-March-2021) =
|
313 |
+
* New: Clear YARPP cache button on settings page
|
314 |
+
* [Bugfix])(https://wordpress.org/support/topic/undefined-variable-post_types/) Undefined variable ``$post_types`
|
315 |
+
|
316 |
= 5.12.0 (22-February-2021) =
|
317 |
+
* New shortcode template attribute. Eg `[yarpp template="yarpp-template-photoblog"]`
|
318 |
+
* PHP 8.0 compatibility
|
319 |
+
* Deprecated: functions `related_posts()`, `related_pages()` and `related_entries() [use `yarpp_related() instead`]
|
320 |
+
* Deprecated: functions `related_posts_exist()`, `related_pages_exist()` and `related_entries_exist()` [use `yarpp_related_exist()` instead]
|
321 |
* Bugfix: consistently use "post_type" parameter and "cross-relate" from all YARPP functions
|
322 |
* [Bugfix](https://wordpress.org/support/topic/cannot-be-translated-because-there-is-no-text-domain-description/): Add textdomain to allow translating the readme file
|
323 |
|
327 |
* Enhancement: YARPP post metabox enhancements - adds "edit" and "view" hover options to each link, mimicking the main posts table
|
328 |
* Enhancement: Add missing debug info
|
329 |
* Bugfix: Avoid REST API warning by providing the page parameter which WP core expects
|
330 |
+
* Deprecated: functions `YARPP::maybe_enqueue_thumbnails()` and `YARPP::enqueue_thumbnails()`
|
331 |
|
332 |
= 5.10.2 (23-November-2020) =
|
333 |
* Enhancement: Faster queries and a speed boost ⚡️ (Re-introduces database query improvements while avoiding the fatal error identified by some in v5.10.0)
|
1085 |
* Initial upload
|
1086 |
|
1087 |
== Upgrade Notice ==
|
1088 |
+
= 5.13.0 =
|
1089 |
We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
|
yarpp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Yet Another Related Posts Plugin (YARPP)
|
4 |
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
|
5 |
-
Version: 5.
|
6 |
Author: YARPP
|
7 |
Author URI: https://yarpp.com/
|
8 |
Plugin URI: https://yarpp.com/
|
@@ -24,7 +24,7 @@ if(!defined('WP_CONTENT_DIR')){
|
|
24 |
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
|
25 |
}
|
26 |
|
27 |
-
define('YARPP_VERSION', '5.
|
28 |
|
29 |
define('YARPP_DIR', dirname(__FILE__));
|
30 |
/**
|
2 |
/*
|
3 |
Plugin Name: Yet Another Related Posts Plugin (YARPP)
|
4 |
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
|
5 |
+
Version: 5.13.0
|
6 |
Author: YARPP
|
7 |
Author URI: https://yarpp.com/
|
8 |
Plugin URI: https://yarpp.com/
|
24 |
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
|
25 |
}
|
26 |
|
27 |
+
define('YARPP_VERSION', '5.13.0');
|
28 |
|
29 |
define('YARPP_DIR', dirname(__FILE__));
|
30 |
/**
|