Skip to content

Commit bbf2955

Browse files
committed
Replace "block_visibility" with "visibility"
1 parent d5ca2a6 commit bbf2955

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wp-includes/block-supports/block-visibility.php renamed to src/wp-includes/block-supports/visibility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @param array $block Block object.
1717
* @return string Filtered block content.
1818
*/
19-
function wp_render_block_visibility_support( $block_content, $block ) {
19+
function wp_render_visibility_support( $block_content, $block ) {
2020
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
2121

2222
if ( ! $block_type || ! block_has_support( $block_type, 'visibility', true ) ) {
@@ -30,4 +30,4 @@ function wp_render_block_visibility_support( $block_content, $block ) {
3030
return $block_content;
3131
}
3232

33-
add_filter( 'render_block', 'wp_render_block_visibility_support', 10, 2 );
33+
add_filter( 'render_block', 'wp_render_visibility_support', 10, 2 );
File renamed without changes.

0 commit comments

Comments
 (0)