Easy Forms for MailChimp - Version 6.8.5

Version Description

  • September 2, 2021 =
  • Deprecated filter block_categories is replaced by block_categories_all in WP 5.8
Download this release

Release Info

Developer yikesinc
Plugin Icon 128x128 Easy Forms for MailChimp
Version 6.8.5
Comparing to
See all releases

Code changes from version 6.8.4 to 6.8.5

blocks/blocks.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Class YIKES_Easy_Forms_Blocks.
4
  */
@@ -12,7 +13,13 @@ abstract class YIKES_Easy_Forms_Blocks {
12
  public function __construct() {
13
  add_action( 'enqueue_block_editor_assets', array( $this, 'editor_scripts' ) );
14
  add_action( 'init', array( $this, 'register_blocks' ), 11 );
15
- add_filter( 'block_categories', array( $this, 'easy_forms_register_category' ), 10, 2);
 
 
 
 
 
 
16
  }
17
 
18
  /**
@@ -37,6 +44,7 @@ abstract class YIKES_Easy_Forms_Blocks {
37
  *
38
  * @param array $attributes Block attributes.
39
  * @param string $content Block content.
 
40
  * @return string Block output.
41
  */
42
  abstract public function render_block( $attributes, $content );
@@ -46,12 +54,12 @@ abstract class YIKES_Easy_Forms_Blocks {
46
  $categories,
47
  array(
48
  array(
49
- 'slug' => 'easy-forms',
50
  'title' => __( 'Easy Forms', 'easy-forms' ),
51
- 'icon' => 'email-alt2'
52
  ),
53
  )
54
  );
55
  }
56
-
57
  }
1
  <?php
2
+
3
  /**
4
  * Class YIKES_Easy_Forms_Blocks.
5
  */
13
  public function __construct() {
14
  add_action( 'enqueue_block_editor_assets', array( $this, 'editor_scripts' ) );
15
  add_action( 'init', array( $this, 'register_blocks' ), 11 );
16
+
17
+ // The 'block_categories' filter has been deprecated in WordPress 5.8 and replaced by 'block_categories_all'.
18
+ if ( !class_exists( 'WP_Block_Editor_Context' ) ) {
19
+ add_filter( 'block_categories', array( $this, 'easy_forms_register_category' ), 10, 2 );
20
+ } else {
21
+ add_filter( 'block_categories_all', array( $this, 'easy_forms_register_category' ), 10, 2 );
22
+ }
23
  }
24
 
25
  /**
44
  *
45
  * @param array $attributes Block attributes.
46
  * @param string $content Block content.
47
+ *
48
  * @return string Block output.
49
  */
50
  abstract public function render_block( $attributes, $content );
54
  $categories,
55
  array(
56
  array(
57
+ 'slug' => 'easy-forms',
58
  'title' => __( 'Easy Forms', 'easy-forms' ),
59
+ 'icon' => 'email-alt2',
60
  ),
61
  )
62
  );
63
  }
64
+
65
  }
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: yikesinc, eherman24, liljimmi, JPry, yikesitskevin, fmixell, vochr
3
  Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
4
  Tags: Mailchimp, Mailchimp forms, Mailchimp lists, opt-in forms, sign up form, Mailchimp, email, forms, mailing lists, marketing, newsletter, sign up
5
  Requires at least: 4.0
6
- Tested up to: 5.7
7
  Requires PHP: 5.2.13
8
- Stable tag: 6.8.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -172,6 +172,9 @@ For information and code examples on how to implement the hooks and filters prov
172
 
173
  == Changelog ==
174
 
 
 
 
175
  = 6.8.4 - April 12, 2021 =
176
  * Increase specifity of admin asset inclusion to prevent conflicts with other plugins.
177
 
3
  Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
4
  Tags: Mailchimp, Mailchimp forms, Mailchimp lists, opt-in forms, sign up form, Mailchimp, email, forms, mailing lists, marketing, newsletter, sign up
5
  Requires at least: 4.0
6
+ Tested up to: 5.8
7
  Requires PHP: 5.2.13
8
+ Stable tag: 6.8.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
172
 
173
  == Changelog ==
174
 
175
+ = 6.8.5 - September 2, 2021 =
176
+ * Deprecated filter block_categories is replaced by block_categories_all in WP 5.8
177
+
178
  = 6.8.4 - April 12, 2021 =
179
  * Increase specifity of admin asset inclusion to prevent conflicts with other plugins.
180
 
yikes-inc-easy-mailchimp-extender.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Forms for Mailchimp
4
  * Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
5
  * Description: The ultimate Mailchimp WordPress plugin. Easily build <strong>unlimited forms for your Mailchimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">Mailchimp API key</a>.
6
- * Version: 6.8.4
7
  * Author: YIKES, Inc.
8
  * Author URI: https://www.yikesplugins.com/
9
  * License: GPL-3.0+
@@ -42,7 +42,7 @@ if ( ! defined( 'WPINC' ) ) {
42
  * @since 6.1.3
43
  */
44
  if ( ! defined( 'YIKES_MC_VERSION' ) ) {
45
- define( 'YIKES_MC_VERSION', '6.8.4' );
46
  }
47
 
48
  /**
3
  * Plugin Name: Easy Forms for Mailchimp
4
  * Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
5
  * Description: The ultimate Mailchimp WordPress plugin. Easily build <strong>unlimited forms for your Mailchimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">Mailchimp API key</a>.
6
+ * Version: 6.8.5
7
  * Author: YIKES, Inc.
8
  * Author URI: https://www.yikesplugins.com/
9
  * License: GPL-3.0+
42
  * @since 6.1.3
43
  */
44
  if ( ! defined( 'YIKES_MC_VERSION' ) ) {
45
+ define( 'YIKES_MC_VERSION', '6.8.5' );
46
  }
47
 
48
  /**