Skip to content

Commit f9ac71d

Browse files
committed
💄 Show "Hide for post type X" in site editor
Closes #29
1 parent e02e82a commit f9ac71d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

block-control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/*
55
Plugin Name: Block Control
66
Description: Control the visibility of your Gutenberg blocks by conditions.
7-
Version: 1.4.0
7+
Version: 1.4.1
88
Author URI: https://epiph.yt/en/
99
Author: Epiphyt
1010
Domain Path: /languages

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: epiphyt, kittmedia, krafit
33
Tags: gutenberg, block, conditional, visibility, block editor
44
Requires at least: 6.2
5-
Stable tag: 1.4.0
5+
Stable tag: 1.4.1
66
Tested up to: 6.7
77
Requires PHP: 5.6
88
License: GPL2
@@ -74,6 +74,9 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
7474

7575
== Changelog ==
7676

77+
= 1.4.1 =
78+
* We fixed displaying post type visibility settings inside the site editor.
79+
7780
= 1.4.0 =
7881
* We added the possibility to hide inline text for everyone but screen readers.
7982

src/control/controls.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ const addControls = createHigherOrderComponent( ( BlockEdit ) => {
589589
if (
590590
postType &&
591591
postType !== type &&
592+
postType !== 'wp_template' &&
592593
postType !== 'wp_block'
593594
) {
594595
return null;

0 commit comments

Comments
 (0)