commit:     8fb565f8eb7e8ab1e70fefaf494ee3ceea6ecb6f
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  4 00:33:01 2017 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jan  4 00:33:09 2017 +0000
URL:        https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=8fb565f8

Update theme twentyfourteen to 1.9

 themes/twentyfourteen/functions.php      | 25 +++++++++++++++++++++++++
 themes/twentyfourteen/inc/customizer.php |  6 +++---
 themes/twentyfourteen/readme.txt         |  9 +++++++--
 themes/twentyfourteen/style.css          | 29 ++++++++++++++++++++++++++++-
 4 files changed, 63 insertions(+), 6 deletions(-)

diff --git a/themes/twentyfourteen/functions.php 
b/themes/twentyfourteen/functions.php
index f85ef1c..74141dc 100644
--- a/themes/twentyfourteen/functions.php
+++ b/themes/twentyfourteen/functions.php
@@ -277,6 +277,31 @@ function twentyfourteen_admin_fonts() {
 }
 add_action( 'admin_print_scripts-appearance_page_custom-header', 
'twentyfourteen_admin_fonts' );
 
+/**
+ * Add preconnect for Google Fonts.
+ *
+ * @since Twenty Fourteen 1.9
+ *
+ * @param array   $urls          URLs to print for resource hints.
+ * @param string  $relation_type The relation type the URLs are printed.
+ * @return array URLs to print for resource hints.
+ */
+function twentyfourteen_resource_hints( $urls, $relation_type ) {
+       if ( wp_style_is( 'twentyfourteen-lato', 'queue' ) && 'preconnect' === 
$relation_type ) {
+               if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' 
) ) {
+                       $urls[] = array(
+                               'href' => 'https://fonts.gstatic.com',
+                               'crossorigin',
+                       );
+               } else {
+                       $urls[] = 'https://fonts.gstatic.com';
+               }
+       }
+
+       return $urls;
+}
+add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
+
 if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
 /**
  * Print the attached image with a link to the next attached image.

diff --git a/themes/twentyfourteen/inc/customizer.php 
b/themes/twentyfourteen/inc/customizer.php
index 4522984..3928915 100644
--- a/themes/twentyfourteen/inc/customizer.php
+++ b/themes/twentyfourteen/inc/customizer.php
@@ -16,9 +16,9 @@
  */
 function twentyfourteen_customize_register( $wp_customize ) {
        // Add postMessage support for site title and description.
-       $wp_customize->get_setting( 'blogname' )->transport         = 
'postMessage';
-       $wp_customize->get_setting( 'blogdescription' )->transport  = 
'postMessage';
-       $wp_customize->get_setting( 'header_textcolor' )->transport = 
'postMessage';
+       $wp_customize->get_setting( 'blogname' )->transport          = 
'postMessage';
+       $wp_customize->get_setting( 'blogdescription' )->transport   = 
'postMessage';
+       $wp_customize->get_setting( 'header_textcolor' )->transport  = 
'postMessage';
 
        if ( isset( $wp_customize->selective_refresh ) ) {
                $wp_customize->selective_refresh->add_partial( 'blogname', 
array(

diff --git a/themes/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt
index 0080a1e..f27dfa4 100644
--- a/themes/twentyfourteen/readme.txt
+++ b/themes/twentyfourteen/readme.txt
@@ -1,8 +1,8 @@
 === Twenty Fourteen ===
 Contributors: the WordPress team
 Requires at least: WordPress 3.6
-Tested up to: WordPress 4.7-trunk
-Stable tag: 1.8
+Tested up to: WordPress 4.8-trunk
+Stable tag: 1.9
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, 
custom-background, custom-header, custom-menu, editor-style, featured-images, 
flexible-header, footer-widgets, full-width-template, microformats, 
post-formats, rtl-language-support, sticky-post, theme-options, 
translation-ready, accessibility-ready
@@ -50,6 +50,11 @@ Source: http://www.genericons.com
 
 == Changelog ==
 
+= 1.9 =
+* Released: December 6, 2016
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_1.9
+
 = 1.8 =
 * Released: August 15, 2016
 

diff --git a/themes/twentyfourteen/style.css b/themes/twentyfourteen/style.css
index 4221371..afa33f6 100644
--- a/themes/twentyfourteen/style.css
+++ b/themes/twentyfourteen/style.css
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
 Author: the WordPress team
 Author URI: https://wordpress.org/
 Description: In 2014, our default theme lets you create a responsive magazine 
website with a sleek, modern design. Feature your favorite homepage content in 
either a grid or a slider. Use the three widget areas to customize your 
website, and change your content's layout with a full-width page template and a 
contributor page to show off your authors. Creating a magazine website with 
WordPress has never been easier.
-Version: 1.8
+Version: 1.9
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, 
custom-background, custom-header, custom-menu, editor-style, featured-images, 
flexible-header, footer-widgets, full-width-template, microformats, 
post-formats, rtl-language-support, sticky-post, theme-options, 
translation-ready, accessibility-ready
@@ -1039,6 +1039,10 @@ span + .edit-link:before,
        outline: 1px dotted;
 }
 
+.secondary-navigation .customize-partial-edit-shortcut button,
+.footer-sidebar .widget:first-child .customize-partial-edit-shortcut button {
+       left: 0;
+}
 
 /**
  * 6.0 Content
@@ -3088,6 +3092,18 @@ a.post-thumbnail:hover {
        width: device-width;
 }
 
+/* Adjust positioning of edit shortcuts, override style in 
customize-preview.css */
+@media screen and (max-width:800px) {
+       body.customize-partial-edit-shortcuts-shown .site-header .site-title {
+               padding-left: 8px;
+       }
+
+       .site-header .customize-partial-edit-shortcut button {
+               top: 10px;
+       }
+}
+
+
 @media screen and (max-width: 400px) {
        .list-view .site-content .post-thumbnail {
                background: none;
@@ -3162,6 +3178,17 @@ a.post-thumbnail:hover {
        }
 }
 
+/* Adjust positioning of edit shortcuts, override style in 
customize-preview.css */
+@media screen and (max-width:320px) {
+       .site-header .customize-partial-edit-shortcut button {
+               left: -32px;
+       }
+
+       body.customize-partial-edit-shortcuts-shown .site-header .site-title {
+               padding-left: 28px;
+       }
+}
+
 @media screen and (min-width: 401px) {
        a.post-thumbnail:hover img {
                opacity: 0.85;

Reply via email to