declare support and add wrappers. #12038

This commit is contained in:
James Koster 2016-11-25 11:57:42 +00:00
parent afe59f697d
commit 7f15372919
3 changed files with 7 additions and 1 deletions

View File

@ -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' );
}
/**

View File

@ -44,6 +44,9 @@ switch ( $template ) {
case 'twentysixteen' :
echo '</main></div>';
break;
case 'twentyseventeen' :
echo '</main></div></div>';
break;
default :
echo '</div></div>';
break;

View File

@ -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;