Contextual Related Posts - Version 2.6.2

Version Description

Release post: https://wzn.io/2K2ohWB

  • Bug fixes:
    • Fixed PHP fatal error "Cant use function return value in write context"
    • Changed default setting for thumbnail width and height to 150
Download this release

Release Info

Developer Ajay
Plugin Icon 128x128 Contextual Related Posts
Version 2.6.2
Comparing to
See all releases

Code changes from version 2.6.1 to 2.6.2

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.1
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.2
19
  * Author: WebberZone
20
  * Author URI: https://webberzone.com
21
  * License: GPL-2.0+
includes/admin/default-settings.php CHANGED
@@ -123,7 +123,7 @@ function crp_settings_general() {
123
  'uninstall_indices' => array(
124
  'id' => 'uninstall_indices',
125
  'name' => esc_html__( 'Delete FULLTEXT indices on uninstall', 'contextual-related-posts' ),
126
- 'desc' => esc_html__( 'If this is checked, FULTEXT indices generated by Contextual Related Posts are removed from the database if you choose to uninstall/delete the plugin.', 'contextual-related-posts' ),
127
  'type' => 'checkbox',
128
  'options' => true,
129
  ),
@@ -330,7 +330,7 @@ function crp_settings_list() {
330
  'limit' => array(
331
  'id' => 'limit',
332
  'name' => esc_html__( 'Number of posts to display', 'contextual-related-posts' ),
333
- 'desc' => esc_html__( 'Maximum number of posts that will be displayed in the list. This option is used if you don not specify the number of posts in the widget or shortcodes', 'contextual-related-posts' ),
334
  'type' => 'number',
335
  'options' => '6',
336
  'min' => '0',
@@ -462,7 +462,7 @@ function crp_settings_thumbnail() {
462
  'name' => esc_html__( 'Thumbnail width', 'contextual-related-posts' ),
463
  'desc' => '',
464
  'type' => 'number',
465
- 'options' => '250',
466
  'min' => '0',
467
  'size' => 'small',
468
  ),
@@ -471,7 +471,7 @@ function crp_settings_thumbnail() {
471
  'name' => esc_html__( 'Thumbnail height', 'contextual-related-posts' ),
472
  'desc' => '',
473
  'type' => 'number',
474
- 'options' => '250',
475
  'min' => '0',
476
  'size' => 'small',
477
  ),
123
  'uninstall_indices' => array(
124
  'id' => 'uninstall_indices',
125
  'name' => esc_html__( 'Delete FULLTEXT indices on uninstall', 'contextual-related-posts' ),
126
+ 'desc' => esc_html__( 'If this is checked, FULLTEXT indices generated by Contextual Related Posts are removed from the database if you choose to uninstall/delete the plugin.', 'contextual-related-posts' ),
127
  'type' => 'checkbox',
128
  'options' => true,
129
  ),
330
  'limit' => array(
331
  'id' => 'limit',
332
  'name' => esc_html__( 'Number of posts to display', 'contextual-related-posts' ),
333
+ 'desc' => esc_html__( 'Maximum number of posts that will be displayed in the list. This option is used if you do not specify the number of posts in the widget or shortcodes', 'contextual-related-posts' ),
334
  'type' => 'number',
335
  'options' => '6',
336
  'min' => '0',
462
  'name' => esc_html__( 'Thumbnail width', 'contextual-related-posts' ),
463
  'desc' => '',
464
  'type' => 'number',
465
+ 'options' => '150',
466
  'min' => '0',
467
  'size' => 'small',
468
  ),
471
  'name' => esc_html__( 'Thumbnail height', 'contextual-related-posts' ),
472
  'desc' => '',
473
  'type' => 'number',
474
+ 'options' => '150',
475
  'min' => '0',
476
  'size' => 'small',
477
  ),
includes/content.php CHANGED
@@ -63,7 +63,7 @@ function crp_content_filter( $content ) {
63
 
64
  // If this post type is in the DO NOT DISPLAY list.
65
  // If post_types is empty or contains a query string then use parse_str else consider it comma-separated.
66
- if ( ! empty( crp_get_option( 'exclude_on_post_types' ) ) && false === strpos( crp_get_option( 'exclude_on_post_types' ), '=' ) ) {
67
  $exclude_on_post_types = explode( ',', crp_get_option( 'exclude_on_post_types' ) );
68
  } else {
69
  parse_str( crp_get_option( 'exclude_on_post_types' ), $exclude_on_post_types ); // Save post types in $exclude_on_post_types variable.
63
 
64
  // If this post type is in the DO NOT DISPLAY list.
65
  // If post_types is empty or contains a query string then use parse_str else consider it comma-separated.
66
+ if ( crp_get_option( 'exclude_on_post_types' ) && false === strpos( crp_get_option( 'exclude_on_post_types' ), '=' ) ) {
67
  $exclude_on_post_types = explode( ',', crp_get_option( 'exclude_on_post_types' ) );
68
  } else {
69
  parse_str( crp_get_option( 'exclude_on_post_types' ), $exclude_on_post_types ); // Save post types in $exclude_on_post_types variable.
readme.txt CHANGED
@@ -183,6 +183,14 @@ In addition to the above, the shortcode takes every option that the plugin suppo
183
 
184
  == Changelog ==
185
 
 
 
 
 
 
 
 
 
186
  = 2.6.1 =
187
 
188
  Release post: [https://wzn.io/2K2ohWB](https://wzn.io/2K2ohWB)
183
 
184
  == Changelog ==
185
 
186
+ = 2.6.2 =
187
+
188
+ Release post: [https://wzn.io/2K2ohWB](https://wzn.io/2K2ohWB)
189
+
190
+ * Bug fixes:
191
+ * Fixed PHP fatal error "Can’t use function return value in write context"
192
+ * Changed default setting for thumbnail width and height to 150
193
+
194
  = 2.6.1 =
195
 
196
  Release post: [https://wzn.io/2K2ohWB](https://wzn.io/2K2ohWB)