소스 검색

Merge pull request #2799 from Automattic/fix/varia-morden-header-issues

Morden, Varia: changed default value for get_theme_mod
Maggie 4 년 전
부모
커밋
222582508f
12개의 변경된 파일12개의 추가작업 그리고 12개의 파일을 삭제
  1. 1 1
      morden/header.php
  2. 1 1
      morden/package-lock.json
  3. 1 1
      morden/package.json
  4. 1 1
      morden/sass/style-child-theme.scss
  5. 1 1
      morden/style-rtl.css
  6. 1 1
      morden/style.css
  7. 1 1
      varia/header.php
  8. 1 1
      varia/package-lock.json
  9. 1 1
      varia/package.json
  10. 1 1
      varia/style-rtl.css
  11. 1 1
      varia/style.css
  12. 1 1
      varia/style.scss

+ 1 - 1
morden/header.php

@@ -13,7 +13,7 @@
 $has_primary_nav = has_nav_menu( 'menu-1' );
 $header_classes  = 'site-header-wrap responsive-max-width';
 $header_classes .= has_custom_logo() ? ' has-logo' : '';
-$header_classes .= 1 === (int) get_theme_mod( 'header_text', true ) ? ' has-title-and-tagline' : '';
+$header_classes .= 1 === get_theme_mod( 'header_text', 1 ) ? ' has-title-and-tagline' : '';
 $header_classes .= $has_primary_nav ? ' has-menu' : '';
 ?><!doctype html>
 <html <?php language_attributes(); ?>>

+ 1 - 1
morden/package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "morden",
-  "version": "1.5.11",
+  "version": "1.5.12",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 1 - 1
morden/package.json

@@ -1,6 +1,6 @@
 {
   "name": "morden",
-  "version": "1.5.11",
+  "version": "1.5.12",
   "description": "Morden",
   "bugs": {
     "url": "https://github.com/Automattic/themes/issues"

+ 1 - 1
morden/sass/style-child-theme.scss

@@ -5,7 +5,7 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: Morden is a functional and responsive multi-purpose theme that is the perfect solution for your business's online presence.
 Requires at least: WordPress 4.9.6
-Version: 1.5.11
+Version: 1.5.12
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: varia

+ 1 - 1
morden/style-rtl.css

@@ -6,7 +6,7 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: Morden is a functional and responsive multi-purpose theme that is the perfect solution for your business's online presence.
 Requires at least: WordPress 4.9.6
-Version: 1.5.11
+Version: 1.5.12
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: varia

+ 1 - 1
morden/style.css

@@ -6,7 +6,7 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: Morden is a functional and responsive multi-purpose theme that is the perfect solution for your business's online presence.
 Requires at least: WordPress 4.9.6
-Version: 1.5.11
+Version: 1.5.12
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: varia

+ 1 - 1
varia/header.php

@@ -13,7 +13,7 @@
 $has_primary_nav = has_nav_menu( 'menu-1' );
 $header_classes  = 'site-header responsive-max-width';
 $header_classes .= has_custom_logo() ? ' has-logo' : '';
-$header_classes .= 1 === (int) get_theme_mod( 'header_text', true ) ? ' has-title-and-tagline' : '';
+$header_classes .= 1 === get_theme_mod( 'header_text', 1 ) ? ' has-title-and-tagline' : '';
 $header_classes .= $has_primary_nav ? ' has-menu' : '';
 ?><!doctype html>
 <html <?php language_attributes(); ?>>

+ 1 - 1
varia/package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "varia",
-  "version": "1.5.8",
+  "version": "1.5.9",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 1 - 1
varia/package.json

@@ -1,6 +1,6 @@
 {
   "name": "varia",
-  "version": "1.5.8",
+  "version": "1.5.9",
   "description": "A variable-based design system for WordPress sites built with Gutenberg.",
   "bugs": {
     "url": "https://github.com/Automattic/themes/issues?q=is%3Aopen+is%3Aissue+label%3Avaria"

+ 1 - 1
varia/style-rtl.css

@@ -6,7 +6,7 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: A variable-based design system for WordPress sites built with Gutenberg.
 Requires at least: WordPress 4.9.6
-Version: 1.5.8
+Version: 1.5.9
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Text Domain: varia

+ 1 - 1
varia/style.css

@@ -6,7 +6,7 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: A variable-based design system for WordPress sites built with Gutenberg.
 Requires at least: WordPress 4.9.6
-Version: 1.5.8
+Version: 1.5.9
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Text Domain: varia

+ 1 - 1
varia/style.scss

@@ -5,7 +5,7 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: A variable-based design system for WordPress sites built with Gutenberg.
 Requires at least: WordPress 4.9.6
-Version: 1.5.8
+Version: 1.5.9
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Text Domain: varia