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 28, 2023
1 parent bbcafcb commit 1ac77ef
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 1ac77ef

Please sign in to comment.