Changeset 13016
- Timestamp:
- 07/15/2021 03:34:22 PM (4 years ago)
- File:
- 1 edited
Legend:
- Unmodified
- Added
- Removed
trunk/src/bp-templates/bp-nouveau/includes/functions.php
r13009 r13016 1553 1553 */ 1554 1554 function bp_nouveau_unregister_blocks_for_post_context() { 1555 unregister_block_type( 'bp/primary-nav' ); 1555 if ( ! function_exists( 'unregister_block_type' ) ) { 1556 return; 1557 } 1558 1559 $is_registered = WP_Block_Type_Registry::get_instance()->is_registered( 'bp/primary-nav' ); 1560 1561 if ( $is_registered ) { 1562 unregister_block_type( 'bp/primary-nav' ); 1563 } 1556 1564 } 1557 1565 add_action( 'load-post.php', 'bp_nouveau_unregister_blocks_for_post_context' );
Note: See TracChangeset for help on using the changeset viewer.