declare support and add wrappers. #12038
This commit is contained in:
parent
afe59f697d
commit
7f15372919
|
@ -893,7 +893,7 @@ add_filter( 'mod_rewrite_rules', 'wc_ms_protect_download_rewite_rules' );
|
|||
* @return string[]
|
||||
*/
|
||||
function wc_get_core_supported_themes() {
|
||||
return array( 'twentysixteen', 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentyeleven', 'twentytwelve', 'twentyten' );
|
||||
return array( 'twentyseventeen', 'twentysixteen', 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentyeleven', 'twentytwelve', 'twentyten' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -44,6 +44,9 @@ switch ( $template ) {
|
|||
case 'twentysixteen' :
|
||||
echo '</main></div>';
|
||||
break;
|
||||
case 'twentyseventeen' :
|
||||
echo '</main></div></div>';
|
||||
break;
|
||||
default :
|
||||
echo '</div></div>';
|
||||
break;
|
||||
|
|
|
@ -41,6 +41,9 @@ switch ( $template ) {
|
|||
case 'twentysixteen' :
|
||||
echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">';
|
||||
break;
|
||||
case 'twentyseventeen' :
|
||||
echo '<div class="wrap"><div id="primary" class="content-area twentyseventeen"><main id="main" class="site-main" role="main">';
|
||||
break;
|
||||
default :
|
||||
echo '<div id="container"><div id="content" role="main">';
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue