From 42c6111259f3450e56009953f819770f4b5ac93e Mon Sep 17 00:00:00 2001 From: samba <samba@autistici.org> Date: Sun, 19 May 2019 22:13:00 +0200 Subject: [PATCH] [auto] theme: twentyseventeen 2.2 --- wp-content/themes/twentyseventeen/README.txt | 10 ++++++++-- .../twentyseventeen/assets/css/colors-dark.css | 2 +- .../assets/css/editor-blocks.css | 1 + wp-content/themes/twentyseventeen/header.php | 1 + .../twentyseventeen/inc/color-patterns.php | 2 +- .../twentyseventeen/inc/template-tags.php | 18 ++++++++++++++++++ wp-content/themes/twentyseventeen/style.css | 5 +++-- .../page/content-front-page-panels.php | 2 +- .../template-parts/page/content-front-page.php | 2 +- .../template-parts/page/content-page.php | 2 +- .../template-parts/post/content-audio.php | 2 +- .../template-parts/post/content-excerpt.php | 2 +- .../template-parts/post/content-gallery.php | 2 +- .../template-parts/post/content-image.php | 2 +- .../template-parts/post/content-video.php | 2 +- .../template-parts/post/content.php | 2 +- 16 files changed, 42 insertions(+), 15 deletions(-) diff --git a/wp-content/themes/twentyseventeen/README.txt b/wp-content/themes/twentyseventeen/README.txt index 535f1e615..3e6640b04 100644 --- a/wp-content/themes/twentyseventeen/README.txt +++ b/wp-content/themes/twentyseventeen/README.txt @@ -1,8 +1,9 @@ === Twenty Seventeen === -Contributors: the WordPress team +Contributors: wordpressdotorg Requires at least: WordPress 4.7 Tested up to: WordPress 5.0 -Version: 2.1 +Requires PHP: 5.2.4 +Version: 2.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready @@ -60,6 +61,11 @@ Source: https://unsplash.com/@englr?photo=bIhpiQA009k == Changelog == += 2.2 = +* Released: May 7, 2019 + +https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.2 + = 2.1 = * Released: February 21, 2019 diff --git a/wp-content/themes/twentyseventeen/assets/css/colors-dark.css b/wp-content/themes/twentyseventeen/assets/css/colors-dark.css index 3b85b97d9..449f0623a 100644 --- a/wp-content/themes/twentyseventeen/assets/css/colors-dark.css +++ b/wp-content/themes/twentyseventeen/assets/css/colors-dark.css @@ -289,7 +289,7 @@ body.colors-dark, color: #bbb; } -.colors-dark button:hover, +.colors-dark button:hover:not( .mejs-container > button ), .colors-dark button:focus, .colors-dark input[type="button"]:hover, .colors-dark input[type="button"]:focus, diff --git a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css index 60170e8e0..6b6bd4722 100644 --- a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css +++ b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css @@ -674,6 +674,7 @@ table.wp-block-table tr { border-bottom: 1px solid #eee; } +table.wp-block-table th, table.wp-block-table td { border: 0; padding: 0.4em; diff --git a/wp-content/themes/twentyseventeen/header.php b/wp-content/themes/twentyseventeen/header.php index 27148be6d..0ac11c30e 100644 --- a/wp-content/themes/twentyseventeen/header.php +++ b/wp-content/themes/twentyseventeen/header.php @@ -23,6 +23,7 @@ </head> <body <?php body_class(); ?>> +<?php wp_body_open(); ?> <div id="page" class="site"> <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyseventeen' ); ?></a> diff --git a/wp-content/themes/twentyseventeen/inc/color-patterns.php b/wp-content/themes/twentyseventeen/inc/color-patterns.php index ddd25d089..cfd243f67 100644 --- a/wp-content/themes/twentyseventeen/inc/color-patterns.php +++ b/wp-content/themes/twentyseventeen/inc/color-patterns.php @@ -307,7 +307,7 @@ body.colors-custom, color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */ } -.colors-custom button:hover, +.colors-custom button:hover:not( .mejs-container > button ), .colors-custom button:focus, .colors-custom input[type="button"]:hover, .colors-custom input[type="button"]:focus, diff --git a/wp-content/themes/twentyseventeen/inc/template-tags.php b/wp-content/themes/twentyseventeen/inc/template-tags.php index 8fec665a2..2c24e4ec2 100644 --- a/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -198,3 +198,21 @@ function twentyseventeen_category_transient_flusher() { } add_action( 'edit_category', 'twentyseventeen_category_transient_flusher' ); add_action( 'save_post', 'twentyseventeen_category_transient_flusher' ); + +if ( ! function_exists( 'wp_body_open' ) ) : + /** + * Fire the wp_body_open action. + * + * Added for backwards compatibility to support pre 5.2.0 WordPress versions. + * + * @since Twenty Seventeen 2.2 + */ + function wp_body_open() { + /** + * Triggered after the opening <body> tag. + * + * @since Twenty Seventeen 2.2 + */ + do_action( 'wp_body_open' ); + } +endif; diff --git a/wp-content/themes/twentyseventeen/style.css b/wp-content/themes/twentyseventeen/style.css index e53226145..6a6a629ab 100644 --- a/wp-content/themes/twentyseventeen/style.css +++ b/wp-content/themes/twentyseventeen/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. -Version: 2.1 +Version: 2.2 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen @@ -1034,7 +1034,7 @@ input[type="submit"].secondary { color: #222; } -button:hover, +button:hover:not( .mejs-container > button ), button:focus, input[type="button"]:hover, input[type="button"]:focus, @@ -1646,6 +1646,7 @@ body.home.title-tagline-hidden.has-header-video .custom-logo-link img { body:not(.title-tagline-hidden) .site-branding-text { display: inline-block; + max-width: 100%; vertical-align: middle; } diff --git a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php index b1bf88392..98b129d31 100644 --- a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php +++ b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php @@ -84,4 +84,4 @@ global $twentyseventeencounter; </div><!-- .wrap --> </div><!-- .panel-content --> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php index 3b321a5bb..aa6e2846b 100644 --- a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php +++ b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php @@ -49,4 +49,4 @@ </div><!-- .wrap --> </div><!-- .panel-content --> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/page/content-page.php b/wp-content/themes/twentyseventeen/template-parts/page/content-page.php index 162bc3659..f85ebc8c6 100644 --- a/wp-content/themes/twentyseventeen/template-parts/page/content-page.php +++ b/wp-content/themes/twentyseventeen/template-parts/page/content-page.php @@ -29,4 +29,4 @@ ); ?> </div><!-- .entry-content --> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php b/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php index 95f317271..bfa3e19c7 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php @@ -106,4 +106,4 @@ } ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php b/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php index 3e5ee546e..54a493392 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php @@ -45,4 +45,4 @@ <?php the_excerpt(); ?> </div><!-- .entry-summary --> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php b/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php index ac525a755..b171ecdcc 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php @@ -93,4 +93,4 @@ } ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-image.php b/wp-content/themes/twentyseventeen/template-parts/post/content-image.php index 911a8a866..12cd4e272 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-image.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-image.php @@ -83,4 +83,4 @@ } ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-video.php b/wp-content/themes/twentyseventeen/template-parts/post/content-video.php index 72de975a7..9f80aeae2 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-video.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-video.php @@ -104,4 +104,4 @@ } ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content.php b/wp-content/themes/twentyseventeen/template-parts/post/content.php index 4e59e09f9..3c55aa164 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content.php @@ -76,4 +76,4 @@ } ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> -- GitLab