Browse Source

Merge pull request #3357 from Automattic/fix/3312

Spearhead: Show the Disable Dark Mode checkbox even if the colors aren't modified
Ben Dwyer 4 years ago
parent
commit
58513d4479

+ 1 - 1
spearhead/assets/sass/style.scss

@@ -7,7 +7,7 @@ Description: Share your podcast with the world using Spearhead.
 Requires at least: 5.5
 Tested up to: 5.5
 Requires PHP: 5.6.2
-Version: 1.3.1
+Version: 1.3.2
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: seedlet

+ 2 - 2
spearhead/inc/wpcom-colors.php

@@ -26,7 +26,7 @@ if ( ! function_exists( 'spearhead_wpcom_customize_update' ) ) :
 			'fg2'  => '#fafbf6',
 		);
 
-		if ( $default_palette === $wpcom_colors_array['colors'] ) :
+		if ( ! $wpcom_colors_array['colors'] || $default_palette === $wpcom_colors_array['colors'] ) :
 			$wp_customize->add_setting( 'color_darkmode_disable' );
 			$wp_customize->add_control(
 				'color_darkmode_disable',
@@ -40,7 +40,7 @@ if ( ! function_exists( 'spearhead_wpcom_customize_update' ) ) :
 					'section'     => 'colors_manager_tool',
 					'priority'    => 10, // Set to 10 so it appears near the top of the Colors & Backgrounds panel
 					'type'        => 'checkbox',
-					'settings'	  => 'color_darkmode_disable'
+					'settings'    => 'color_darkmode_disable',
 				)
 			);
 		endif;

+ 1 - 1
spearhead/package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "spearhead",
-  "version": "1.2.4",
+  "version": "1.3.2",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 1 - 1
spearhead/package.json

@@ -1,6 +1,6 @@
 {
   "name": "spearhead",
-  "version": "1.3.1",
+  "version": "1.3.2",
   "description": "a podcast theme",
   "keywords": [
     "gutenberg",

+ 1 - 1
spearhead/style-rtl.css

@@ -7,7 +7,7 @@ Description: Share your podcast with the world using Spearhead.
 Requires at least: 5.5
 Tested up to: 5.5
 Requires PHP: 5.6.2
-Version: 1.3.0
+Version: 1.3.2
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: seedlet

+ 1 - 1
spearhead/style.css

@@ -7,7 +7,7 @@ Description: Share your podcast with the world using Spearhead.
 Requires at least: 5.5
 Tested up to: 5.5
 Requires PHP: 5.6.2
-Version: 1.3.0
+Version: 1.3.2
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: seedlet