Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
fix variable name!
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Nov 10, 2023
1 parent 7ce5e09 commit 0a19b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BlockTypes/MiniCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ public function register_empty_cart_message_block_pattern() {
*/
public function register_auto_insert( $hooked_blocks, $position, $anchor_block, $context ) {
// Cache for active theme.
static $active_theme = null;
if ( is_null( $active_theme ) ) {
static $active_theme_name = null;
if ( is_null( $active_theme_name ) ) {
$active_theme_name = wp_get_theme()->get( 'Name' );
}
/**
Expand Down

0 comments on commit 0a19b79

Please sign in to comment.