Subscribe2 - Version 10.34

Version Description

(24th August, 2020) =

  • Fix gutenberg script loading issue
Download this release

Release Info

Developer tareq1988
Plugin Icon 128x128 Subscribe2
Version 10.34
Comparing to
See all releases

Code changes from version 10.33 to 10.34

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 10.33 (4th June, 2020) =
2
 
3
  * Bump tested upto version 4.4
1
+ = 10.34 (24th August, 2020) =
2
+
3
+ * Fix gutenberg script loading issue
4
+
5
  = 10.33 (4th June, 2020) =
6
 
7
  * Bump tested upto version 4.4
classes/class-s2-block-editor.php CHANGED
@@ -13,8 +13,8 @@ class S2_Block_Editor {
13
  add_action( 'rest_api_init', array( $this, 'register_settings_endpoint' ) );
14
 
15
  if ( is_admin() ) {
16
- add_action( 'admin_enqueue_scripts', array( &$this, 'gutenberg_block_editor_assets' ), 6 );
17
- add_action( 'admin_enqueue_scripts', array( &$this, 'gutenberg_i18n' ), 6 );
18
  }
19
  }
20
 
@@ -161,11 +161,6 @@ class S2_Block_Editor {
161
  * Enqueue Block Editor assets
162
  */
163
  public function gutenberg_block_editor_assets() {
164
- global $pagenow;
165
- if ( ! in_array( $pagenow, array( 'post-new.php', 'post.php', 'page-new.php', 'page.php' ), true ) ) {
166
- return;
167
- }
168
-
169
  wp_enqueue_script(
170
  'subscribe2-shortcode',
171
  S2URL . 'gutenberg/shortcode' . $this->script_debug . '.js',
@@ -194,11 +189,6 @@ class S2_Block_Editor {
194
  * Handle translation of Block Editor assets
195
  */
196
  public function gutenberg_i18n() {
197
- global $pagenow;
198
- if ( ! in_array( $pagenow, array( 'post-new.php', 'post.php', 'page-new.php', 'page.php' ), true ) ) {
199
- return;
200
- }
201
-
202
  $translations = get_translations_for_domain( 'subscribe2' );
203
 
204
  $locale_data = array(
13
  add_action( 'rest_api_init', array( $this, 'register_settings_endpoint' ) );
14
 
15
  if ( is_admin() ) {
16
+ add_action( 'enqueue_block_editor_assets', array( &$this, 'gutenberg_block_editor_assets' ), 6 );
17
+ add_action( 'enqueue_block_editor_assets', array( &$this, 'gutenberg_i18n' ), 6 );
18
  }
19
  }
20
 
161
  * Enqueue Block Editor assets
162
  */
163
  public function gutenberg_block_editor_assets() {
 
 
 
 
 
164
  wp_enqueue_script(
165
  'subscribe2-shortcode',
166
  S2URL . 'gutenberg/shortcode' . $this->script_debug . '.js',
189
  * Handle translation of Block Editor assets
190
  */
191
  public function gutenberg_i18n() {
 
 
 
 
 
192
  $translations = get_translations_for_domain( 'subscribe2' );
193
 
194
  $locale_data = array(
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: tareq1988, nizamuddinbabu, wemail
3
  Donate link: https://getwemail.io
4
  Tags: posts, subscription, email, subscribe, notify, notification, newsletter, post notification, email marketing, optin, form
5
  Requires at least: 4.0
6
- Tested up to: 5.4
7
- Stable tag: 10.33
8
- Requires PHP: 5.4
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -72,6 +72,10 @@ This token will automatically be replaced by dynamic subscription information an
72
 
73
  == Changelog ==
74
 
 
 
 
 
75
  = 10.33 (4th June, 2020) =
76
 
77
  * Bump tested upto version 4.4
3
  Donate link: https://getwemail.io
4
  Tags: posts, subscription, email, subscribe, notify, notification, newsletter, post notification, email marketing, optin, form
5
  Requires at least: 4.0
6
+ Tested up to: 5.5
7
+ Stable tag: 10.34
8
+ Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
72
 
73
  == Changelog ==
74
 
75
+ = 10.34 (24th August, 2020) =
76
+
77
+ * Fix gutenberg script loading issue
78
+
79
  = 10.33 (4th June, 2020) =
80
 
81
  * Bump tested upto version 4.4
subscribe2.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Subscribe2
4
  Plugin URI: https://getwemail.io
5
  Description: Notifies an email list when new entries are posted.
6
- Version: 10.33
7
  Author: weMail
8
  Author URI: https://getwemail.io
9
  Licence: GPLv3
@@ -54,7 +54,7 @@ if ( is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
54
 
55
  // our version number. Don't touch this or any line below
56
  // unless you know exactly what you are doing
57
- define( 'S2VERSION', '10.33' );
58
  define( 'S2PLUGIN', __FILE__ );
59
  define( 'S2PATH', trailingslashit( dirname( __FILE__ ) ) );
60
  define( 'S2DIR', trailingslashit( dirname( plugin_basename( __FILE__ ) ) ) );
3
  Plugin Name: Subscribe2
4
  Plugin URI: https://getwemail.io
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 10.34
7
  Author: weMail
8
  Author URI: https://getwemail.io
9
  Licence: GPLv3
54
 
55
  // our version number. Don't touch this or any line below
56
  // unless you know exactly what you are doing
57
+ define( 'S2VERSION', '10.34' );
58
  define( 'S2PLUGIN', __FILE__ );
59
  define( 'S2PATH', trailingslashit( dirname( __FILE__ ) ) );
60
  define( 'S2DIR', trailingslashit( dirname( plugin_basename( __FILE__ ) ) ) );