Skip to content

Commit

Permalink
Hot fix for ACF notice and Safari text rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Diego committed Jun 7, 2021
1 parent 52520e0 commit c3433b4
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'fd8e2dd337cef0e25f63d3f8e0d7e977');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '3ace65f1e3d8f53672d6b7c42e4d56ff');
2 changes: 1 addition & 1 deletion dist/block-visibility-contextual-indicator-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/block-visibility-editor-styles.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '31be4787bb1f67fe030c805f4fe3adf3');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f746b657cdd9120c72317e71a241352d');
2 changes: 1 addition & 1 deletion dist/block-visibility-editor-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/block-visibility-editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'ef9607d53e1efcb77fb3969bfe1e0cdc');
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '1e21f6806db02681a202b126b0d8d175');
4 changes: 2 additions & 2 deletions dist/block-visibility-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "block-visibility",
"version": "1.8.0",
"version": "1.9.0",
"description": "Provides visibility controls and scheduling functionality to all WordPress blocks.",
"author": "Nick Diego",
"license": "GPL-2.0-or-later",
Expand Down
5 changes: 3 additions & 2 deletions src/editor/inspector-controls/acf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default function ACF( props ) {
return null;
}

const fields = variables?.integrations?.acf?.fields ?? [];
const acf = controlSetAtts?.controls?.acf ?? {};
const hideOnRuleSets = acf?.hideOnRuleSets ?? false;
let ruleSets = acf?.ruleSets ?? [];
Expand Down Expand Up @@ -134,10 +135,10 @@ export default function ACF( props ) {
: __( 'Show', 'block-visibility' )
) }
</div>
{ ! variables?.integrations?.acf?.fields && (
{ fields.length === 0 && (
<Notice status="warning" isDismissible={ false }>
{ __(
'It does not appear that your website contains any published fields.',
'It does not appear that your website contains any published fields yet.',
'block-visibility'
) }
</Notice>
Expand Down
Loading

0 comments on commit c3433b4

Please sign in to comment.