updated theme Twenty Nineteen version 2.5

This commit is contained in:
KawaiiPunk 2023-03-31 11:25:02 +00:00 committed by Gitium
parent 97859556db
commit 1c5b451d2f
13 changed files with 587 additions and 1010 deletions

View File

@ -36,7 +36,7 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
$comment_author_url = get_comment_author_url( $comment );
$comment_author = get_comment_author( $comment );
$avatar = get_avatar( $comment, $args['avatar_size'] );
if ( 0 != $args['avatar_size'] ) {
if ( 0 !== (int) $args['avatar_size'] ) {
if ( empty( $comment_author_url ) ) {
echo $avatar;
} else {
@ -78,10 +78,9 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
$comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() );
printf(
'<a href="%s"><time datetime="%s" title="%s">%s</time></a>',
'<a href="%s"><time datetime="%s">%s</time></a>',
esc_url( get_comment_link( $comment, $args ) ),
get_comment_time( 'c' ),
esc_attr( $comment_timestamp ),
$comment_timestamp
);
@ -99,7 +98,7 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
}
?>
<?php if ( '0' == $comment->comment_approved ) : ?>
<?php if ( '0' === $comment->comment_approved ) : ?>
<p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p>
<?php endif; ?>

View File

@ -35,7 +35,7 @@ $discussion = twentynineteen_get_discussion_data();
_e( 'Leave a comment', 'twentynineteen' );
}
} else {
if ( '1' == $discussion->responses ) {
if ( '1' === (string) $discussion->responses ) {
/* translators: %s: Post title. */
printf( _x( 'One reply on &ldquo;%s&rdquo;', 'comments title', 'twentynineteen' ), get_the_title() );
} else {

View File

@ -22,7 +22,12 @@
<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', 'twentynineteen' ); ?></a>
<a class="skip-link screen-reader-text" href="#content">
<?php
/* translators: Hidden accessibility text. */
_e( 'Skip to content', 'twentynineteen' );
?>
</a>
<header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>">

View File

@ -53,6 +53,7 @@ get_header();
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
/* translators: Hidden accessibility text. */
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentynineteen' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
)
@ -67,6 +68,7 @@ get_header();
if ( $metadata ) {
printf(
'<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s &times; %4$s</a></span>',
/* translators: Hidden accessibility text. */
_x( 'Full size', 'Used before full size attachment link.', 'twentynineteen' ),
esc_url( wp_get_attachment_url() ),
absint( $metadata['width'] ),

View File

@ -43,6 +43,7 @@ if ( ! function_exists( 'twentynineteen_posted_by' ) ) :
/* translators: 1: SVG icon. 2: Post author, only visible to screen readers. 3: Author link. */
'<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
twentynineteen_get_icon_svg( 'person', 16 ),
/* translators: Hidden accessibility text. */
__( 'Posted by', 'twentynineteen' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_html( get_the_author() )
@ -88,6 +89,7 @@ if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */
'<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>',
twentynineteen_get_icon_svg( 'archive', 16 ),
/* translators: Hidden accessibility text. */
__( 'Posted in', 'twentynineteen' ),
$categories_list
); // WPCS: XSS OK.
@ -99,6 +101,7 @@ if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
'<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
twentynineteen_get_icon_svg( 'tag', 16 ),
/* translators: Hidden accessibility text. */
__( 'Tags:', 'twentynineteen' ),
$tags_list
); // WPCS: XSS OK.

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,20 @@
{
"name": "twentynineteen",
"version": "2.4.0",
"version": "2.5.0",
"description": "Default WP Theme",
"bugs": {
"url": "https://core.trac.wordpress.org/"
},
"homepage": "https://wordpress.org/themes/twentynineteen/",
"devDependencies": {
"@wordpress/browserslist-config": "^5.1.0",
"autoprefixer": "^10.4.12",
"@wordpress/browserslist-config": "^5.9.0",
"autoprefixer": "^10.4.13",
"chokidar-cli": "^3.0.0",
"node-sass": "^7.0.3",
"node-sass": "^8.0.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.2",
"postcss-focus-within": "^4.0.0",
"postcss": "^8.4.21",
"postcss-cli": "^10.1.0",
"postcss-focus-within": "^7.0.2",
"rtlcss": "^4.0.0"
},
"rtlcssConfig": {
@ -23,7 +24,8 @@
"clean": true,
"greedy": false,
"processUrls": false,
"stringMap": []
"stringMap": [],
"disablePolyfillReadyClass": true
},
"plugins": [],
"map": false

View File

@ -8,6 +8,8 @@ module.exports = {
module.exports = {
plugins: [
postcssFocusWithin(/* pluginOptions */)
postcssFocusWithin({
disablePolyfillReadyClass: true
})
]
};

View File

@ -1,9 +1,9 @@
=== Twenty Nineteen ===
Contributors: wordpressdotorg
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Requires at least: 4.9.6
Tested up to: 6.1
Stable tag: 2.4
Tested up to: 6.2
Stable tag: 2.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -12,19 +12,19 @@ Our 2019 default theme is designed to show off the power of the block editor.
== Description ==
Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
For more information about Twenty Nineteen please go to https://wordpress.org/support/article/twenty-nineteen/.
For more information about Twenty Nineteen please go to https://wordpress.org/documentation/article/twenty-nineteen/.
== Installation ==
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Nineteen in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://wordpress.org/support/article/twenty-nineteen/ for a guide on how to customize this theme.
4. Go to https://wordpress.org/documentation/article/twenty-nineteen/ for a guide on how to customize this theme.
5. Navigate to Appearance > Customize in your admin panel and customize to taste.
== Copyright ==
Twenty Nineteen WordPress Theme, Copyright 2018-2022 WordPress.org
Twenty Nineteen WordPress Theme, Copyright 2018-2023 WordPress.org
Twenty Nineteen is distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
@ -39,6 +39,11 @@ GNU General Public License for more details.
== Changelog ==
= 2.5 =
* Released: March 28, 2023
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.5
= 2.4 =
* Released: November 1, 2022
@ -116,7 +121,7 @@ Initial release
== Resources ==
* normalize.css, © 2012-2018 Nicolas Gallagher and Jonathan Neal, MIT
* Underscores, © 2012-2022 Automattic, Inc., GNU GPL v2 or later
* Underscores, © 2012-2023 Automattic, Inc., GNU GPL v2 or later
* Bundled block pattern images:
* Abstract Background by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-background-0SRRVNMKBX
* Abstract Waves by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-waves-0KREGLTZQ3

View File

@ -36,9 +36,11 @@ get_header();
the_post_navigation(
array(
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next Post', 'twentynineteen' ) . '</span> ' .
/* translators: Hidden accessibility text. */
'<span class="screen-reader-text">' . __( 'Next post:', 'twentynineteen' ) . '</span> <br/>' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Post', 'twentynineteen' ) . '</span> ' .
/* translators: Hidden accessibility text. */
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentynineteen' ) . '</span> <br/>' .
'<span class="post-title">%title</span>',
)

View File

@ -5,14 +5,14 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 6.1
Tested up to: 6.2
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.4
Version: 2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

View File

@ -5,14 +5,14 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 6.1
Tested up to: 6.2
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.4
Version: 2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

View File

@ -4,14 +4,14 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 6.1
Tested up to: 6.2
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.4
Version: 2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.