Related Posts Thumbnails Plugin for WordPress - Version 2.0.2

Version Description

  • Please upgrade immediately.

=

Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Related Posts Thumbnails Plugin for WordPress
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

Files changed (3) hide show
  1. inc/rpt-blocks.php +12 -8
  2. readme.txt +5 -2
  3. related-posts-thumbnails.php +1 -1
inc/rpt-blocks.php CHANGED
@@ -4,17 +4,17 @@
4
  *
5
  */
6
  function enqueue_block_editor_assets() {
7
- $block_path = 'assets/blocks/js/blocks.editor.js';
8
- $style_path = 'assets/blocks/css/blocks.editor.min.css';
9
 
10
- // Enqueue the bundled block JS file
11
- wp_enqueue_script( 'rpt-blocks-js', RELATED_POSTS_THUMBNAILS_URI.$block_path, array('wp-i18n', 'wp-element', 'wp-blocks', 'wp-components', 'wp-editor'), RELATED_POSTS_THUMBNAILS_VERSION );
12
 
13
- // Enqueue optional editor only styles
14
- wp_enqueue_style( 'rpt-blocks-editor-css', RELATED_POSTS_THUMBNAILS_URI.$style_path, array(), RELATED_POSTS_THUMBNAILS_VERSION );
15
  }
16
 
17
- add_action('enqueue_block_editor_assets', 'enqueue_block_editor_assets');
18
 
19
  /**
20
  * Create related posts block category.
@@ -32,7 +32,11 @@ function rpt_block_category( $categories ) {
32
  );
33
  }
34
 
35
- add_filter( 'block_categories', 'rpt_block_category', 10, 2);
 
 
 
 
36
 
37
  /* * * * * * * * * *
38
  * Dynamic Block
4
  *
5
  */
6
  function enqueue_block_editor_assets() {
7
+ $block_path = '../assets/blocks/js/blocks.editor.js';
8
+ $style_path = '../assets/blocks/css/blocks.editor.min.css';
9
 
10
+ // Enqueue the bundled block JS file.
11
+ wp_enqueue_script( 'rpt-blocks-js', plugins_url( $block_path, __FILE__ ), array( 'wp-i18n', 'wp-element', 'wp-blocks', 'wp-components', 'wp-editor' ), RELATED_POSTS_THUMBNAILS_VERSION );
12
 
13
+ // Enqueue optional editor only styles.
14
+ wp_enqueue_style( 'rpt-blocks-editor-css', plugins_url( $style_path, __FILE__ ), array(), RELATED_POSTS_THUMBNAILS_VERSION );
15
  }
16
 
17
+ add_action( 'enqueue_block_editor_assets', 'enqueue_block_editor_assets' );
18
 
19
  /**
20
  * Create related posts block category.
32
  );
33
  }
34
 
35
+ if ( version_compare( $GLOBALS['wp_version'], '5.8', '>=' ) ) {
36
+ add_filter( 'block_categories_all', 'rpt_block_category', 10, 2 );
37
+ } else {
38
+ add_filter( 'block_categories', 'rpt_block_category', 10, 2 );
39
+ }
40
 
41
  /* * * * * * * * * *
42
  * Dynamic Block
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpbrigade.com/
4
  Tags: easy related posts, Related Posts thumbnails, Free Related Posts, related posts, similar related posts
5
  Requires at least: 3.6
6
  Tested up to: 5.9
7
- Stable tag: 2.0.1
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -71,11 +71,14 @@ If there are no images of the specified size in the post, or file does not exist
71
 
72
  == Upgrade Notice ==
73
 
74
- = 2.0.0 =
75
  * Please upgrade immediately.
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 2.0.1 - 2022-04-18 =
80
  * BugFix: The image wasn't displaying with {custom field name} setting.
81
  * Enhancement: Code refactoring.
4
  Tags: easy related posts, Related Posts thumbnails, Free Related Posts, related posts, similar related posts
5
  Requires at least: 3.6
6
  Tested up to: 5.9
7
+ Stable tag: 2.0.2
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
71
 
72
  == Upgrade Notice ==
73
 
74
+ = 2.0.2 =
75
  * Please upgrade immediately.
76
 
77
  == Changelog ==
78
 
79
+ = 2.0.2 - 2022-04-19 =
80
+ * BugFix: PHP Warning on Gutenberg block.
81
+
82
  = 2.0.1 - 2022-04-18 =
83
  * BugFix: The image wasn't displaying with {custom field name} setting.
84
  * Enhancement: Code refactoring.
related-posts-thumbnails.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WordPress Related Posts Thumbnails
4
  * Plugin URI: https://wpbrigade.com/wordpress/plugins/related-posts/?utm_source=related-posts-lite&utm_medium=plugin-uri&utm_campaign=pro-upgrade-rp
5
  * Description: Showing related posts thumbnails under the posts.
6
- * Version: 2.0.1
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/?utm_source=related-posts-lite&utm_medium=author-link&utm_campaign=pro-upgrade-rp
9
  */
3
  * Plugin Name: WordPress Related Posts Thumbnails
4
  * Plugin URI: https://wpbrigade.com/wordpress/plugins/related-posts/?utm_source=related-posts-lite&utm_medium=plugin-uri&utm_campaign=pro-upgrade-rp
5
  * Description: Showing related posts thumbnails under the posts.
6
+ * Version: 2.0.2
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/?utm_source=related-posts-lite&utm_medium=author-link&utm_campaign=pro-upgrade-rp
9
  */