Version Description
- Bug fixes:
- Reverted the "Automatically add related posts to" setting introduced in 2.4.0
- Metaboxes will now save when editting attachments
Download this release
Release Info
Developer | Ajay |
Plugin | Contextual Related Posts |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.4.1
- admin/metabox.php +1 -0
- contextual-related-posts.php +1 -1
- includes/modules/class-crp-widget.php +0 -10
- readme.txt +7 -1
admin/metabox.php
CHANGED
@@ -269,4 +269,5 @@ function crp_save_meta_box( $post_id ) {
|
|
269 |
do_action( 'crp_save_meta_box', $post_id );
|
270 |
}
|
271 |
add_action( 'save_post', 'crp_save_meta_box' );
|
|
|
272 |
|
269 |
do_action( 'crp_save_meta_box', $post_id );
|
270 |
}
|
271 |
add_action( 'save_post', 'crp_save_meta_box' );
|
272 |
+
add_action( 'edit_attachment', 'crp_save_meta_box' );
|
273 |
|
contextual-related-posts.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Contextual Related Posts
|
16 |
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
|
17 |
* Description: Display a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
|
18 |
-
* Version: 2.4.
|
19 |
* Author: WebberZone
|
20 |
* Author URI: https://webberzone.com
|
21 |
* License: GPL-2.0+
|
15 |
* Plugin Name: Contextual Related Posts
|
16 |
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
|
17 |
* Description: Display a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
|
18 |
+
* Version: 2.4.1
|
19 |
* Author: WebberZone
|
20 |
* Author URI: https://webberzone.com
|
21 |
* License: GPL-2.0+
|
includes/modules/class-crp-widget.php
CHANGED
@@ -212,16 +212,6 @@ class CRP_Widget extends WP_Widget {
|
|
212 |
}
|
213 |
}
|
214 |
|
215 |
-
// Return if disabled in settings page.
|
216 |
-
if ( ( is_single() && ! $crp_settings['add_to_content'] ) ||
|
217 |
-
( is_page() && ! $crp_settings['add_to_page'] ) ||
|
218 |
-
( is_home() && ! $crp_settings['add_to_home'] ) ||
|
219 |
-
( is_category() && ! $crp_settings['add_to_category_archives'] ) ||
|
220 |
-
( is_tag() && ! $crp_settings['add_to_tag_archives'] ) ||
|
221 |
-
( ( is_tax() || is_author() || is_date() ) && ! $crp_settings['add_to_archives'] ) ) {
|
222 |
-
return;
|
223 |
-
}
|
224 |
-
|
225 |
// If post_types is empty or contains a query string then use parse_str else consider it comma-separated.
|
226 |
if ( ! empty( $crp_settings['exclude_on_post_types'] ) && false === strpos( $crp_settings['exclude_on_post_types'], '=' ) ) {
|
227 |
$exclude_on_post_types = explode( ',', $crp_settings['exclude_on_post_types'] );
|
212 |
}
|
213 |
}
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
// If post_types is empty or contains a query string then use parse_str else consider it comma-separated.
|
216 |
if ( ! empty( $crp_settings['exclude_on_post_types'] ) && false === strpos( $crp_settings['exclude_on_post_types'], '=' ) ) {
|
217 |
$exclude_on_post_types = explode( ',', $crp_settings['exclude_on_post_types'] );
|
readme.txt
CHANGED
@@ -181,6 +181,12 @@ In addition to the above, the shortcode takes every option that the plugin suppo
|
|
181 |
|
182 |
== Changelog ==
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
= 2.4.0 =
|
185 |
|
186 |
* Features:
|
@@ -335,7 +341,7 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
|
|
335 |
|
336 |
== Upgrade Notice ==
|
337 |
|
338 |
-
= 2.4.
|
339 |
* New features. Upgrade highly recommended. Please do verify your settings after the upgrade.
|
340 |
Check the Changelog for more details
|
341 |
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 2.4.1 =
|
185 |
+
|
186 |
+
* Bug fixes:
|
187 |
+
* Reverted the "Automatically add related posts to" setting introduced in 2.4.0
|
188 |
+
* Metaboxes will now save when editting attachments
|
189 |
+
|
190 |
= 2.4.0 =
|
191 |
|
192 |
* Features:
|
341 |
|
342 |
== Upgrade Notice ==
|
343 |
|
344 |
+
= 2.4.1 =
|
345 |
* New features. Upgrade highly recommended. Please do verify your settings after the upgrade.
|
346 |
Check the Changelog for more details
|
347 |
|