Changeset 188114
- Timestamp:
- 03/29/2023 07:15:37 PM (3 years ago)
- Location:
- twentyfourteen/3.6
- Files:
-
- 25 added
- 10 edited
- 1 copied
-
. (copied) (copied from twentyfourteen/3.5)
-
comments.php (modified) (2 diffs)
-
css/blocks.css (modified) (2 diffs)
-
css/editor-blocks.css (modified) (2 diffs)
-
fonts (added)
-
fonts/font-lato.css (added)
-
fonts/lato (added)
-
fonts/lato/LICENSE.txt (added)
-
fonts/lato/lato-all-300-italic.woff (added)
-
fonts/lato/lato-all-300-normal.woff (added)
-
fonts/lato/lato-all-400-italic.woff (added)
-
fonts/lato/lato-all-400-normal.woff (added)
-
fonts/lato/lato-all-700-italic.woff (added)
-
fonts/lato/lato-all-700-normal.woff (added)
-
fonts/lato/lato-all-900-normal.woff (added)
-
fonts/lato/lato-latin-300-italic.woff2 (added)
-
fonts/lato/lato-latin-300-normal.woff2 (added)
-
fonts/lato/lato-latin-400-italic.woff2 (added)
-
fonts/lato/lato-latin-400-normal.woff2 (added)
-
fonts/lato/lato-latin-700-italic.woff2 (added)
-
fonts/lato/lato-latin-700-normal.woff2 (added)
-
fonts/lato/lato-latin-900-normal.woff2 (added)
-
fonts/lato/lato-latin-ext-300-italic.woff2 (added)
-
fonts/lato/lato-latin-ext-300-normal.woff2 (added)
-
fonts/lato/lato-latin-ext-400-italic.woff2 (added)
-
fonts/lato/lato-latin-ext-400-normal.woff2 (added)
-
fonts/lato/lato-latin-ext-700-italic.woff2 (added)
-
fonts/lato/lato-latin-ext-700-normal.woff2 (added)
-
fonts/lato/lato-latin-ext-900-normal.woff2 (added)
-
functions.php (modified) (11 diffs)
-
header.php (modified) (1 diff)
-
inc/custom-header.php (modified) (1 diff)
-
inc/featured-content.php (modified) (2 diffs)
-
inc/template-tags.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
twentyfourteen/3.6/comments.php
r161206 r188114 48 48 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> 49 49 <nav id="comment-nav-above" class="navigation comment-navigation"> 50 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> 50 <h1 class="screen-reader-text"> 51 <?php 52 /* translators: Hidden accessibility text. */ 53 _e( 'Comment navigation', 'twentyfourteen' ); 54 ?> 55 </h1> 51 56 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> 52 57 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> … … 68 73 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> 69 74 <nav id="comment-nav-below" class="navigation comment-navigation"> 70 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> 75 <h1 class="screen-reader-text"> 76 <?php 77 /* translators: Hidden accessibility text. */ 78 _e( 'Comment navigation', 'twentyfourteen' ); 79 ?> 80 </h1> 71 81 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> 72 82 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> -
twentyfourteen/3.6/css/blocks.css
r151902 r188114 188 188 } 189 189 190 .wp-block-pullquote.has-text-color blockquote, 191 .wp-block-pullquote.has-background blockquote, 192 .has-background .wp-block-pullquote blockquote, 193 .wp-block-pullquote.has-text-color cite, 194 .has-background .wp-block-pullquote cite, 195 .has-text-color .wp-block-pullquote__citation { 196 color: inherit; 197 } 198 190 199 .wp-block-pullquote.alignleft { 191 200 margin-right: 1em; … … 262 271 } 263 272 264 .wp-block-separator.is-style-wide { 273 .wp-block-separator.is-style-wide, 274 .wp-block-separator.is-style-dots { 265 275 max-width: 100%; 266 276 } -
twentyfourteen/3.6/css/editor-blocks.css
r151902 r188114 365 365 366 366 .wp-block-pullquote { 367 margin: 0; 368 } 369 370 .editor-styles-wrapper .wp-block-pullquote { 367 371 border: 0; 368 margin: 0;369 372 } 370 373 … … 377 380 } 378 381 382 .wp-block-pullquote.has-text-color blockquote, 383 .wp-block-pullquote.has-background blockquote, 384 .has-background .wp-block-pullquote blockquote, 385 .wp-block-pullquote.has-text-color cite, 386 .has-background .wp-block-pullquote cite, 387 .has-text-color .wp-block-pullquote__citation { 388 color: inherit; 389 } 390 379 391 .wp-block-pullquote.alignleft blockquote > .editor-rich-text p, 380 392 .wp-block-pullquote.alignright blockquote > .editor-rich-text p { -
twentyfourteen/3.6/functions.php
r178726 r188114 68 68 load_theme_textdomain( 'twentyfourteen' ); 69 69 70 // This theme styles the visual editor to resemble the theme style. 71 add_editor_style( array( 'css/editor-style.css', twentyfourteen_font_url(), 'genericons/genericons.css' ) ); 70 /* 71 * This theme styles the visual editor to resemble the theme style. 72 * When fonts are self-hosted, the theme directory needs to be removed first. 73 */ 74 $font_stylesheet = str_replace( 75 array( get_template_directory_uri() . '/', get_stylesheet_directory_uri() . '/' ), 76 '', 77 twentyfourteen_font_url() 78 ); 79 add_editor_style( array( 'css/editor-style.css', $font_stylesheet, 'genericons/genericons.css' ) ); 72 80 73 81 // Load regular editor styles into the new block-based editor. … … 153 161 /* 154 162 * Enable support for Post Formats. 155 * See https://wordpress.org/ support/article/post-formats/163 * See https://wordpress.org/documentation/article/post-formats/ 156 164 */ 157 165 add_theme_support( … … 294 302 add_action( 'widgets_init', 'twentyfourteen_widgets_init' ); 295 303 296 /** 297 * Register Lato Google font for Twenty Fourteen. 298 * 299 * @since Twenty Fourteen 1.0 300 * 301 * @return string 302 */ 303 function twentyfourteen_font_url() { 304 $font_url = ''; 305 /* 306 * translators: If there are characters in your language that are not supported 307 * by Lato, translate this to 'off'. Do not translate into your own language. 304 if ( ! function_exists( 'twentyfourteen_font_url' ) ) : 305 /** 306 * Register Lato font for Twenty Fourteen. 307 * 308 * @since Twenty Fourteen 1.0 309 * @since Twenty Fourteen 3.6 Replaced Google URL with self-hosted fonts. 310 * 311 * @return string 308 312 */ 309 if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) { 310 $query_args = array( 311 'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), 312 'subset' => urlencode( 'latin,latin-ext' ), 313 'display' => urlencode( 'fallback' ), 314 ); 315 $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); 316 } 317 318 return $font_url; 319 } 313 function twentyfourteen_font_url() { 314 $font_url = ''; 315 /* 316 * translators: If there are characters in your language that are not supported 317 * by Lato, translate this to 'off'. Do not translate into your own language. 318 */ 319 if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) { 320 $font_url = get_template_directory_uri() . '/fonts/font-lato.css'; 321 } 322 323 return $font_url; 324 } 325 endif; 320 326 321 327 /** … … 326 332 function twentyfourteen_scripts() { 327 333 // Add Lato font, used in the main stylesheet. 328 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null ); 334 $font_version = ( 0 === strpos( (string) twentyfourteen_font_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null; 335 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), $font_version ); 329 336 330 337 // Add Genericons font, used in the main stylesheet. … … 332 339 333 340 // Load our main stylesheet. 334 wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '202 21101' );341 wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20230328' ); 335 342 336 343 // Theme block stylesheet. 337 wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '202 10622' );344 wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20230206' ); 338 345 339 346 // Load the Internet Explorer specific stylesheet. … … 370 377 371 378 /** 372 * Enqueue Google fonts styleto admin screen for custom header display.379 * Enqueue font stylesheet to admin screen for custom header display. 373 380 * 374 381 * @since Twenty Fourteen 1.0 375 382 */ 376 383 function twentyfourteen_admin_fonts() { 377 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null ); 384 $font_version = ( 0 === strpos( (string) twentyfourteen_font_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null; 385 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), $font_version ); 378 386 } 379 387 add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' ); … … 383 391 * 384 392 * @since Twenty Fourteen 1.9 393 * @deprecated Twenty Fourteen 3.6 Disabled filter because, by default, fonts are self-hosted. 385 394 * 386 395 * @param array $urls URLs to print for resource hints. … … 402 411 return $urls; 403 412 } 404 add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );413 // add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 ); 405 414 406 415 /** … … 411 420 function twentyfourteen_block_editor_styles() { 412 421 // Block styles. 413 wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '202 10216' );422 wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20230206' ); 414 423 // Add custom fonts. 415 wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null ); 424 $font_version = ( 0 === strpos( (string) twentyfourteen_font_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null; 425 wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), $font_version ); 416 426 } 417 427 add_action( 'enqueue_block_editor_assets', 'twentyfourteen_block_editor_styles' ); … … 462 472 if ( count( $attachment_ids ) > 1 ) { 463 473 foreach ( $attachment_ids as $idx => $attachment_id ) { 464 if ( $attachment_id == $post->ID ) {474 if ( $attachment_id === $post->ID ) { 465 475 $next_id = $attachment_ids[ ( $idx + 1 ) % count( $attachment_ids ) ]; 466 476 break; … … 712 722 * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the 713 723 * `is_customize_preview` function was introduced. 724 * 725 * @global WP_Customize_Manager $wp_customize Customizer object. 714 726 */ 715 727 if ( ! function_exists( 'is_customize_preview' ) ) : -
twentyfourteen/3.6/header.php
r178726 r188114 47 47 48 48 <div class="search-toggle"> 49 <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a> 49 <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"> 50 <?php 51 /* translators: Hidden accessibility text. */ 52 _e( 'Search', 'twentyfourteen' ); 53 ?> 54 </a> 50 55 </div> 51 56 52 57 <nav id="primary-navigation" class="site-navigation primary-navigation"> 53 58 <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button> 54 <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a> 59 <a class="screen-reader-text skip-link" href="#content"> 60 <?php 61 /* translators: Hidden accessibility text. */ 62 _e( 'Skip to content', 'twentyfourteen' ); 63 ?> 64 </a> 55 65 <?php 56 66 wp_nav_menu( -
twentyfourteen/3.6/inc/custom-header.php
r161206 r188114 83 83 <?php 84 84 // If the user has set a custom color for the text, use that. 85 elseif ( get_theme_support( 'custom-header', 'default-text-color' ) != $text_color ) :85 elseif ( get_theme_support( 'custom-header', 'default-text-color' ) !== $text_color ) : 86 86 ?> 87 87 .site-title a { -
twentyfourteen/3.6/inc/featured-content.php
r151902 r188114 263 263 $settings = self::get_setting(); 264 264 265 if ( empty( $settings['tag-id'] ) || $tag_id != $settings['tag-id'] ) {265 if ( empty( $settings['tag-id'] ) || $tag_id !== $settings['tag-id'] ) { 266 266 return; 267 267 } … … 435 435 */ 436 436 public static function enqueue_scripts() { 437 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20 131205', true );437 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20211130', true ); 438 438 } 439 439 -
twentyfourteen/3.6/inc/template-tags.php
r168444 r188114 58 58 ?> 59 59 <nav class="navigation paging-navigation"> 60 <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1> 60 <h1 class="screen-reader-text"> 61 <?php 62 /* translators: Hidden accessibility text. */ 63 _e( 'Posts navigation', 'twentyfourteen' ); 64 ?> 65 </h1> 61 66 <div class="pagination loop-pagination"> 62 67 <?php echo $links; ?> … … 85 90 ?> 86 91 <nav class="navigation post-navigation"> 87 <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1> 92 <h1 class="screen-reader-text"> 93 <?php 94 /* translators: Hidden accessibility text. */ 95 _e( 'Post navigation', 'twentyfourteen' ); 96 ?> 97 </h1> 88 98 <div class="nav-links"> 89 99 <?php -
twentyfourteen/3.6/readme.txt
r178726 r188114 2 2 Contributors: wordpressdotorg 3 3 Requires at least: WordPress 3.6 4 Tested up to: 6. 15 Stable tag: 3. 54 Tested up to: 6.2 5 Stable tag: 3.6 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 == Copyright == 24 24 25 Twenty Fourteen WordPress Theme, Copyright 2013-202 2WordPress.org & Automattic.com25 Twenty Fourteen WordPress Theme, Copyright 2013-2023 WordPress.org & Automattic.com 26 26 Twenty Fourteen is Distributed under the terms of the GNU GPL 27 27 … … 49 49 Source: http://www.genericons.com 50 50 51 Lato Font 52 Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". 53 License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 54 Source: https://fontsource.org/fonts/lato 55 51 56 Photos from Stocksnap, used in block patterns. 52 57 License: CC0 … … 58 63 59 64 == Changelog == 65 66 = 3.6 = 67 * Released: March 28, 2023 68 69 https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.6 60 70 61 71 = 3.5 = -
twentyfourteen/3.6/style.css
r178726 r188114 5 5 Author URI: https://wordpress.org/ 6 6 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. 7 Version: 3. 58 Tested up to: 6. 17 Version: 3.6 8 Tested up to: 6.2 9 9 Requires PHP: 5.2.4 10 10 License: GNU General Public License v2 or later
Note: See TracChangeset
for help on using the changeset viewer.