Version Description
Release post: https://wzn.io/2VrGdOR
-
Enhancements:
- Optimized versions of default.png and default2.png
-
Bug fixes:
- Fixed PHP error when viewing feed
- "Exclude categories" setting wouldn't save properly
- Delete any deprecated settings on save should work properly
- Clearer messages when saving options and a style is activated
Download this release
Release Info
Developer | Ajay |
Plugin | Contextual Related Posts |
Version | 2.6.3 |
Comparing to | |
See all releases |
Code changes from version 2.6.2 to 2.6.3
- contextual-related-posts.php +1 -1
- default.png +0 -0
- default2.png +0 -0
- includes/admin/default-settings.php +2 -2
- includes/admin/save-settings.php +8 -9
- includes/admin/settings-page.php +1 -1
- includes/content.php +1 -1
- languages/contextual-related-posts-en_US.mo +0 -0
- languages/contextual-related-posts-en_US.po +12 -9
- languages/contextual-related-posts-en_US.pot +12 -9
- readme.txt +14 -1
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.6.
|
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.6.3
|
19 |
* Author: WebberZone
|
20 |
* Author URI: https://webberzone.com
|
21 |
* License: GPL-2.0+
|
default.png
CHANGED
Binary file
|
default2.png
CHANGED
Binary file
|
includes/admin/default-settings.php
CHANGED
@@ -733,11 +733,11 @@ function crp_get_styles() {
|
|
733 |
);
|
734 |
|
735 |
/**
|
736 |
-
* Filter the array containing the
|
737 |
*
|
738 |
* @since 2.6.0
|
739 |
*
|
740 |
-
* @param string $
|
741 |
*/
|
742 |
return apply_filters( 'crp_get_styles', $styles );
|
743 |
}
|
733 |
);
|
734 |
|
735 |
/**
|
736 |
+
* Filter the array containing the styles to add your own.
|
737 |
*
|
738 |
* @since 2.6.0
|
739 |
*
|
740 |
+
* @param string $styles Different styles.
|
741 |
*/
|
742 |
return apply_filters( 'crp_get_styles', $styles );
|
743 |
}
|
includes/admin/save-settings.php
CHANGED
@@ -109,22 +109,21 @@ function crp_settings_sanitize( $input = array() ) {
|
|
109 |
if ( ! isset( $input[ $key ] ) ) {
|
110 |
unset( $output[ $key ] );
|
111 |
}
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
unset( $output[ $key ] );
|
117 |
}
|
118 |
|
119 |
add_settings_error( 'crp-notices', 'crp-updated', __( 'Settings updated.', 'contextual-related-posts' ), 'updated' );
|
120 |
|
121 |
// Overwrite settings if rounded thumbnail style is selected.
|
122 |
if ( 'rounded_thumbs' === $output['crp_styles'] ) {
|
123 |
-
add_settings_error( 'crp-notices', 'crp-styles', __( 'Post author, excerpt and date disabled. Thumbnail location set to inline before text.', 'contextual-related-posts' ), 'updated' );
|
124 |
}
|
125 |
// Overwrite settings if text_only thumbnail style is selected.
|
126 |
if ( 'text_only' === $output['crp_styles'] ) {
|
127 |
-
add_settings_error( 'crp-notices', 'crp-styles', __( 'Thumbnail location set to text only.', 'contextual-related-posts' ), 'updated' );
|
128 |
}
|
129 |
|
130 |
/**
|
@@ -315,9 +314,9 @@ add_filter( 'crp_settings_sanitize_taxonomies', 'crp_sanitize_taxonomies_field'
|
|
315 |
function crp_change_settings_on_save( $settings ) {
|
316 |
|
317 |
// Sanitize exclude_cat_slugs to save a new entry of exclude_categories.
|
318 |
-
if (
|
319 |
|
320 |
-
$exclude_cat_slugs = explode( ',', $settings['exclude_cat_slugs'] );
|
321 |
|
322 |
foreach ( $exclude_cat_slugs as $cat_name ) {
|
323 |
$cat = get_term_by( 'name', $cat_name, 'category' );
|
109 |
if ( ! isset( $input[ $key ] ) ) {
|
110 |
unset( $output[ $key ] );
|
111 |
}
|
112 |
+
// Delete any settings that are no longer part of our registered settings.
|
113 |
+
if ( array_key_exists( $key, $output ) && ! array_key_exists( $key, $settings_types ) ) {
|
114 |
+
unset( $output[ $key ] );
|
115 |
+
}
|
|
|
116 |
}
|
117 |
|
118 |
add_settings_error( 'crp-notices', 'crp-updated', __( 'Settings updated.', 'contextual-related-posts' ), 'updated' );
|
119 |
|
120 |
// Overwrite settings if rounded thumbnail style is selected.
|
121 |
if ( 'rounded_thumbs' === $output['crp_styles'] ) {
|
122 |
+
add_settings_error( 'crp-notices', 'crp-styles', __( 'Rounded Thumbnails style selected. Post author, excerpt and date disabled. Thumbnail location set to inline before text. You can change this under the Styles tab.', 'contextual-related-posts' ), 'updated' );
|
123 |
}
|
124 |
// Overwrite settings if text_only thumbnail style is selected.
|
125 |
if ( 'text_only' === $output['crp_styles'] ) {
|
126 |
+
add_settings_error( 'crp-notices', 'crp-styles', __( 'Text only style selected. Thumbnail location set to text only. You can change this under the Styles tab.', 'contextual-related-posts' ), 'updated' );
|
127 |
}
|
128 |
|
129 |
/**
|
314 |
function crp_change_settings_on_save( $settings ) {
|
315 |
|
316 |
// Sanitize exclude_cat_slugs to save a new entry of exclude_categories.
|
317 |
+
if ( isset( $settings['exclude_cat_slugs'] ) ) {
|
318 |
|
319 |
+
$exclude_cat_slugs = array_unique( explode( ',', $settings['exclude_cat_slugs'] ) );
|
320 |
|
321 |
foreach ( $exclude_cat_slugs as $cat_name ) {
|
322 |
$cat = get_term_by( 'name', $cat_name, 'category' );
|
includes/admin/settings-page.php
CHANGED
@@ -611,7 +611,7 @@ function crp_posttypes_callback( $args ) {
|
|
611 |
|
612 |
|
613 |
/**
|
614 |
-
* Display
|
615 |
*
|
616 |
* @since 2.6.0
|
617 |
*
|
611 |
|
612 |
|
613 |
/**
|
614 |
+
* Display taxonomies fields.
|
615 |
*
|
616 |
* @since 2.6.0
|
617 |
*
|
includes/content.php
CHANGED
@@ -176,7 +176,7 @@ function crp_rss_filter( $content ) {
|
|
176 |
$show_excerpt_feed = crp_get_option( 'show_excerpt_feed' );
|
177 |
$post_thumb_op_feed = crp_get_option( 'post_thumb_op_feed' );
|
178 |
|
179 |
-
if ( $add_to['feed'] ) {
|
180 |
$output = $content;
|
181 |
$output .= get_crp( 'is_widget=0&limit=' . $limit_feed . '&show_excerpt=' . $show_excerpt_feed . '&post_thumb_op=' . $post_thumb_op_feed );
|
182 |
return $output;
|
176 |
$show_excerpt_feed = crp_get_option( 'show_excerpt_feed' );
|
177 |
$post_thumb_op_feed = crp_get_option( 'post_thumb_op_feed' );
|
178 |
|
179 |
+
if ( isset( $add_to['feed'] ) && $add_to['feed'] ) {
|
180 |
$output = $content;
|
181 |
$output .= get_crp( 'is_widget=0&limit=' . $limit_feed . '&show_excerpt=' . $show_excerpt_feed . '&post_thumb_op=' . $post_thumb_op_feed );
|
182 |
return $output;
|
languages/contextual-related-posts-en_US.mo
CHANGED
Binary file
|
languages/contextual-related-posts-en_US.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contextual Related Posts\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2019-04-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Ajay D'Souza\n"
|
8 |
"Language-Team: WebberZone <plugins@webberzone.com>\n"
|
@@ -151,7 +151,7 @@ msgstr ""
|
|
151 |
|
152 |
#: includes/admin/default-settings.php:126
|
153 |
msgid ""
|
154 |
-
"If this is checked,
|
155 |
"are removed from the database if you choose to uninstall/delete the plugin."
|
156 |
msgstr ""
|
157 |
|
@@ -317,7 +317,7 @@ msgstr ""
|
|
317 |
#: includes/admin/default-settings.php:333
|
318 |
msgid ""
|
319 |
"Maximum number of posts that will be displayed in the list. This option is "
|
320 |
-
"used if you
|
321 |
msgstr ""
|
322 |
|
323 |
#: includes/admin/default-settings.php:341
|
@@ -888,18 +888,21 @@ msgid ""
|
|
888 |
"the updated settings"
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: includes/admin/save-settings.php:
|
892 |
msgid "Settings updated."
|
893 |
msgstr ""
|
894 |
|
895 |
-
#: includes/admin/save-settings.php:
|
896 |
msgid ""
|
897 |
-
"Post author, excerpt and date disabled.
|
898 |
-
"before text."
|
|
|
899 |
msgstr ""
|
900 |
|
901 |
-
#: includes/admin/save-settings.php:
|
902 |
-
msgid "
|
|
|
|
|
903 |
msgstr ""
|
904 |
|
905 |
#: includes/admin/settings-page.php:32
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contextual Related Posts\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2019-04-27 12:39+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Ajay D'Souza\n"
|
8 |
"Language-Team: WebberZone <plugins@webberzone.com>\n"
|
151 |
|
152 |
#: includes/admin/default-settings.php:126
|
153 |
msgid ""
|
154 |
+
"If this is checked, FULLTEXT indices generated by Contextual Related Posts "
|
155 |
"are removed from the database if you choose to uninstall/delete the plugin."
|
156 |
msgstr ""
|
157 |
|
317 |
#: includes/admin/default-settings.php:333
|
318 |
msgid ""
|
319 |
"Maximum number of posts that will be displayed in the list. This option is "
|
320 |
+
"used if you do not specify the number of posts in the widget or shortcodes"
|
321 |
msgstr ""
|
322 |
|
323 |
#: includes/admin/default-settings.php:341
|
888 |
"the updated settings"
|
889 |
msgstr ""
|
890 |
|
891 |
+
#: includes/admin/save-settings.php:118
|
892 |
msgid "Settings updated."
|
893 |
msgstr ""
|
894 |
|
895 |
+
#: includes/admin/save-settings.php:122
|
896 |
msgid ""
|
897 |
+
"Rounded Thumbnails style selected. Post author, excerpt and date disabled. "
|
898 |
+
"Thumbnail location set to inline before text. You can change this under the "
|
899 |
+
"Styles tab."
|
900 |
msgstr ""
|
901 |
|
902 |
+
#: includes/admin/save-settings.php:126
|
903 |
+
msgid ""
|
904 |
+
"Text only style selected. Thumbnail location set to text only. You can "
|
905 |
+
"change this under the Styles tab."
|
906 |
msgstr ""
|
907 |
|
908 |
#: includes/admin/settings-page.php:32
|
languages/contextual-related-posts-en_US.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Contextual Related Posts\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2019-04-
|
7 |
"PO-Revision-Date: \n"
|
8 |
"Last-Translator: Ajay D'Souza\n"
|
9 |
"Language-Team: plugins@webberzone.com\n"
|
@@ -151,7 +151,7 @@ msgstr ""
|
|
151 |
|
152 |
#: includes/admin/default-settings.php:126
|
153 |
msgid ""
|
154 |
-
"If this is checked,
|
155 |
"are removed from the database if you choose to uninstall/delete the plugin."
|
156 |
msgstr ""
|
157 |
|
@@ -317,7 +317,7 @@ msgstr ""
|
|
317 |
#: includes/admin/default-settings.php:333
|
318 |
msgid ""
|
319 |
"Maximum number of posts that will be displayed in the list. This option is "
|
320 |
-
"used if you
|
321 |
msgstr ""
|
322 |
|
323 |
#: includes/admin/default-settings.php:341
|
@@ -888,18 +888,21 @@ msgid ""
|
|
888 |
"the updated settings"
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: includes/admin/save-settings.php:
|
892 |
msgid "Settings updated."
|
893 |
msgstr ""
|
894 |
|
895 |
-
#: includes/admin/save-settings.php:
|
896 |
msgid ""
|
897 |
-
"Post author, excerpt and date disabled.
|
898 |
-
"before text."
|
|
|
899 |
msgstr ""
|
900 |
|
901 |
-
#: includes/admin/save-settings.php:
|
902 |
-
msgid "
|
|
|
|
|
903 |
msgstr ""
|
904 |
|
905 |
#: includes/admin/settings-page.php:32
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Contextual Related Posts\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2019-04-27 12:39+0100\n"
|
7 |
"PO-Revision-Date: \n"
|
8 |
"Last-Translator: Ajay D'Souza\n"
|
9 |
"Language-Team: plugins@webberzone.com\n"
|
151 |
|
152 |
#: includes/admin/default-settings.php:126
|
153 |
msgid ""
|
154 |
+
"If this is checked, FULLTEXT indices generated by Contextual Related Posts "
|
155 |
"are removed from the database if you choose to uninstall/delete the plugin."
|
156 |
msgstr ""
|
157 |
|
317 |
#: includes/admin/default-settings.php:333
|
318 |
msgid ""
|
319 |
"Maximum number of posts that will be displayed in the list. This option is "
|
320 |
+
"used if you do not specify the number of posts in the widget or shortcodes"
|
321 |
msgstr ""
|
322 |
|
323 |
#: includes/admin/default-settings.php:341
|
888 |
"the updated settings"
|
889 |
msgstr ""
|
890 |
|
891 |
+
#: includes/admin/save-settings.php:118
|
892 |
msgid "Settings updated."
|
893 |
msgstr ""
|
894 |
|
895 |
+
#: includes/admin/save-settings.php:122
|
896 |
msgid ""
|
897 |
+
"Rounded Thumbnails style selected. Post author, excerpt and date disabled. "
|
898 |
+
"Thumbnail location set to inline before text. You can change this under the "
|
899 |
+
"Styles tab."
|
900 |
msgstr ""
|
901 |
|
902 |
+
#: includes/admin/save-settings.php:126
|
903 |
+
msgid ""
|
904 |
+
"Text only style selected. Thumbnail location set to text only. You can "
|
905 |
+
"change this under the Styles tab."
|
906 |
msgstr ""
|
907 |
|
908 |
#: includes/admin/settings-page.php:32
|
readme.txt
CHANGED
@@ -183,6 +183,19 @@ In addition to the above, the shortcode takes every option that the plugin suppo
|
|
183 |
|
184 |
== Changelog ==
|
185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
= 2.6.2 =
|
187 |
|
188 |
Release post: [https://wzn.io/2K2ohWB](https://wzn.io/2K2ohWB)
|
@@ -406,7 +419,7 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
|
|
406 |
|
407 |
== Upgrade Notice ==
|
408 |
|
409 |
-
= 2.6.
|
410 |
* Implemented Settings API. Please verify your settings after the upgrade.
|
411 |
Check the Changelog for more details
|
412 |
|
183 |
|
184 |
== Changelog ==
|
185 |
|
186 |
+
= 2.6.3 =
|
187 |
+
|
188 |
+
Release post: [https://wzn.io/2VrGdOR](https://wzn.io/2VrGdOR)
|
189 |
+
|
190 |
+
* Enhancements:
|
191 |
+
* Optimized versions of default.png and default2.png
|
192 |
+
|
193 |
+
* Bug fixes:
|
194 |
+
* Fixed PHP error when viewing feed
|
195 |
+
* "Exclude categories" setting wouldn't save properly
|
196 |
+
* Delete any deprecated settings on save should work properly
|
197 |
+
* Clearer messages when saving options and a style is activated
|
198 |
+
|
199 |
= 2.6.2 =
|
200 |
|
201 |
Release post: [https://wzn.io/2K2ohWB](https://wzn.io/2K2ohWB)
|
419 |
|
420 |
== Upgrade Notice ==
|
421 |
|
422 |
+
= 2.6.3 =
|
423 |
* Implemented Settings API. Please verify your settings after the upgrade.
|
424 |
Check the Changelog for more details
|
425 |
|