Compare commits
1 commit
main
...
gp_improve
Author | SHA1 | Date | |
---|---|---|---|
f4373c206f |
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@
|
|||
],
|
||||
"test-debug": [
|
||||
"@prepare-test",
|
||||
"@test-modern-events-calendar-lite"
|
||||
"@test-gatherpress"
|
||||
],
|
||||
"test-vs-event-list": "phpunit --filter=vs_event_list",
|
||||
"test-the-events-calendar": "phpunit --filter=the_events_calendar",
|
||||
|
|
|
@ -124,7 +124,7 @@ final class GatherPress extends Event {
|
|||
*/
|
||||
public static function filter_gatherpress_blocks( $block_content, $block ) {
|
||||
// Check if the block name starts with 'gatherpress'.
|
||||
if ( strpos( $block['blockName'], 'gatherpress/' ) === 0 ) {
|
||||
if ( isset( $block['blockName'] ) && 0 === strpos( $block['blockName'], 'gatherpress/' ) ) {
|
||||
return ''; // Skip rendering this block.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue