Changeset 61471
- Timestamp:
- 01/11/2026 09:47:06 PM (2 days ago)
- Location:
- trunk/src/wp-content/themes/twentytwentyone/classes
- Files:
-
- 2 edited
-
class-twenty-twenty-one-custom-colors.php (modified) (1 diff)
-
class-twenty-twenty-one-dark-mode.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php
r60537 r61471 24 24 25 25 // Enqueue color variables for editor. 26 add_action( 'enqueue_block_assets', array( $this, 'editor_custom_color_variables' ) ); 26 if ( is_admin() ) { 27 add_action( 'enqueue_block_assets', array( $this, 'editor_custom_color_variables' ) ); 28 } 27 29 28 30 // Add body-class if needed. -
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r60913 r61471 21 21 22 22 // Enqueue assets for the block-editor. 23 add_action( 'enqueue_block_assets', array( $this, 'editor_custom_color_variables' ) ); 23 if ( is_admin() ) { 24 add_action( 'enqueue_block_assets', array( $this, 'editor_custom_color_variables' ) ); 25 } 24 26 25 27 // Add styles for dark-mode.
Note: See TracChangeset
for help on using the changeset viewer.