Skip to content

Commit

Permalink
v2.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ZafarKamal123 committed Jul 5, 2021
1 parent 0c3bd15 commit 5b9d107
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 5 deletions.
2 changes: 2 additions & 0 deletions extendify-sdk/app/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace Extendify\ExtendifySdk;

use Extendify\ExtendifySdk\App;
use Extendify\ExtendifySdk\User;

/**
* This class handles any file loading for the admin area.
Expand Down Expand Up @@ -94,6 +95,7 @@ public function addScopedScriptsAndStyles()
[
'root' => \esc_url_raw(rest_url(APP::$slug . '/' . APP::$apiVersion)),
'nonce' => \wp_create_nonce('wp_rest'),
'user' => json_decode(User::data('extendifysdk_user_data'), true),
]
);
\wp_enqueue_script(App::$slug . '-scripts');
Expand Down
1 change: 0 additions & 1 deletion extendify-sdk/extendify-sdk.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

if (!defined('ABSPATH')) {
exit;
}
Expand Down
2 changes: 1 addition & 1 deletion extendify-sdk/public/build/extendify-sdk.js

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion extendify-sdk/src/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ window._wpLoadBlockEditor && window.wp.data.subscribe(() => {
if (!useUserStore.getState().enabled) {
return
}
// Redundant extra check added because of a bug where the above check wasn't working
if (window.extendifySdkData?.user && !window.extendifySdkData?.user?.state?.enabled) {
return
}
if (document.getElementById('extendify-templates-inserter-btn')) {
return
}
Expand All @@ -47,6 +51,10 @@ window._wpLoadBlockEditor && window.wp.data.subscribe(() => {
if (!useUserStore.getState().enabled) {
return
}
// Redundant extra check added because of a bug where the above check wasn't working
if (window.extendifySdkData?.user && !window.extendifySdkData?.user?.state?.enabled) {
return
}
if (!document.querySelector('[id$=patterns-view]')) {
return
}
Expand Down Expand Up @@ -93,7 +101,8 @@ const LibraryEnableDisable = () => <PluginSidebarMoreMenuItem
useUserStore.setState({
enabled: !useUserStore.getState().enabled,
})
requestAnimationFrame(() => location.reload())
// Added a 500ms delay to make sure the network save was successful
setTimeout(() => location.reload(), 500)
}}
icon={<></>}
>
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: The Next Generation WordPress Form Builder. Build forms directly within Gutenberg editor live. Add & arrange form fields like blocks.
* Author: munirkamal
* Author URI: https://cakewp.com/
* Version: 2.1.7
* Version: 2.1.8
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: cwp-gutenberg-forms
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ We appreciate all contributions and don't want a wall of rules to get in the way

For more information, visit [Gutenberg Forms](https://gutenbergforms.com).

= 2.1.8 = (5 July 2021)

- Fixed: Bugs

= 2.1.7 = (29 Jun 2021)

- New: Toggle to enable/disable Extendify library
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: munirkamal
Tags: wordpress form, gutenberg form, contact form, subscribe form, multi-step form, gutenberg block, contact form plugin, forms, form builder, custom form, contact button, contact me, custom contact form, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, email submit form, message form, contact form block, wordpress form plugin
Requires at least: 5.0
Tested up to: 5.7
Stable tag: 2.1.7
Stable tag: 2.1.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -126,6 +126,9 @@ You may also get involved with the development via Github:
== Changelog ==
For more information, visit [Gutenberg Forms](https://gutenbergforms.com).

= 2.1.8 = (5 July 2021)
Fixed: Bugs

= 2.1.7 = (29 Jun 2021)
New: Toggle to enable/disable Extendify library
Improved: Updates to the pattern and template library
Expand Down

0 comments on commit 5b9d107

Please sign in to comment.