瀏覽代碼

Add ‘wp_body_open’ hook to Varia Child themes

RE: #1722 all themes should have the wp_body_open() call made
immediately after the body is opened.

https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook

This change adds that support to all of the Varia child themes that have
a custom header.  (Varia parent theme had already been enhanced.)
Jason Crist 4 年之前
父節點
當前提交
e7bc0b3bab
共有 8 個文件被更改,包括 56 次插入0 次删除
  1. 7 0
      balasana/header.php
  2. 7 0
      coutoire/header.php
  3. 7 0
      dalston/header.php
  4. 7 0
      morden/header.php
  5. 7 0
      rivington/header.php
  6. 7 0
      rockfield/header.php
  7. 7 0
      stow/header.php
  8. 7 0
      stratford/header.php

+ 7 - 0
balasana/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'balasana' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'balasana' ); ?></a>
 
 

+ 7 - 0
coutoire/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 
 

+ 7 - 0
dalston/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 
 

+ 7 - 0
morden/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 
 

+ 7 - 0
rivington/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'rivington' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'rivington' ); ?></a>
 
 

+ 7 - 0
rockfield/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'rockfield' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'rockfield' ); ?></a>
 
 

+ 7 - 0
stow/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 
 

+ 7 - 0
stratford/header.php

@@ -20,6 +20,13 @@
 </head>
 </head>
 
 
 <body <?php body_class(); ?>>
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>