From 6daeadb85eaeb4849d520b0409f7b8eed1ffc45a Mon Sep 17 00:00:00 2001 From: desrosj Date: Thu, 17 Dec 2020 14:57:07 +0000 Subject: [PATCH] Twenty Twenty-One: Correct `@since` inline documentation tags. Previously, `1.0.0` was used for the version. This is inconsistent with the versioning used in the other default themes, which use use X.X and not X.X.X. This change corrects all `1.0.0` occurrences to `1.0`, and adds the additional context of `Twenty Twenty-One` to avoid confusion with `WordPress 1.0`. Props SergeyBiryukov, poena. Fixes #51958. Built from https://develop.svn.wordpress.org/trunk@49826 git-svn-id: http://core.svn.wordpress.org/trunk@49545 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyone/404.php | 2 +- wp-content/themes/twentytwentyone/archive.php | 2 +- .../assets/js/editor-dark-mode-support.js | 2 +- .../assets/js/primary-navigation.js | 2 +- .../assets/js/responsive-embeds.js | 2 +- .../class-twenty-twenty-one-custom-colors.php | 16 ++++++------ ...nty-twenty-one-customize-color-control.php | 12 ++++----- ...ty-twenty-one-customize-notice-control.php | 8 +++--- .../class-twenty-twenty-one-customize.php | 14 +++++----- .../class-twenty-twenty-one-dark-mode.php | 26 +++++++++---------- .../class-twenty-twenty-one-svg-icons.php | 20 +++++++------- .../themes/twentytwentyone/comments.php | 2 +- wp-content/themes/twentytwentyone/footer.php | 2 +- .../themes/twentytwentyone/functions.php | 22 ++++++++-------- wp-content/themes/twentytwentyone/header.php | 2 +- wp-content/themes/twentytwentyone/image.php | 2 +- .../twentytwentyone/inc/back-compat.php | 10 +++---- .../twentytwentyone/inc/block-patterns.php | 2 +- .../twentytwentyone/inc/block-styles.php | 4 +-- .../themes/twentytwentyone/inc/custom-css.php | 4 +-- .../twentytwentyone/inc/menu-functions.php | 8 +++--- .../twentytwentyone/inc/starter-content.php | 6 ++--- .../inc/template-functions.php | 26 +++++++++---------- .../twentytwentyone/inc/template-tags.php | 12 ++++----- wp-content/themes/twentytwentyone/index.php | 2 +- wp-content/themes/twentytwentyone/page.php | 2 +- wp-content/themes/twentytwentyone/search.php | 2 +- .../themes/twentytwentyone/searchform.php | 2 +- wp-content/themes/twentytwentyone/single.php | 2 +- .../content/content-excerpt.php | 2 +- .../template-parts/content/content-none.php | 2 +- .../template-parts/content/content-page.php | 2 +- .../template-parts/content/content-single.php | 2 +- .../template-parts/content/content.php | 2 +- .../template-parts/excerpt/excerpt-aside.php | 2 +- .../template-parts/excerpt/excerpt-audio.php | 2 +- .../template-parts/excerpt/excerpt-chat.php | 2 +- .../excerpt/excerpt-gallery.php | 2 +- .../template-parts/excerpt/excerpt-image.php | 2 +- .../template-parts/excerpt/excerpt-link.php | 2 +- .../template-parts/excerpt/excerpt-quote.php | 2 +- .../template-parts/excerpt/excerpt-status.php | 2 +- .../template-parts/excerpt/excerpt-video.php | 2 +- .../template-parts/excerpt/excerpt.php | 2 +- .../template-parts/footer/footer-widgets.php | 2 +- .../template-parts/header/entry-header.php | 2 +- .../template-parts/header/excerpt-header.php | 2 +- .../template-parts/header/site-branding.php | 2 +- .../template-parts/header/site-header.php | 2 +- .../template-parts/header/site-nav.php | 2 +- .../template-parts/post/author-bio.php | 2 +- wp-includes/version.php | 2 +- 52 files changed, 132 insertions(+), 132 deletions(-) diff --git a/wp-content/themes/twentytwentyone/404.php b/wp-content/themes/twentytwentyone/404.php index fbc99fa674..c15a2e549c 100644 --- a/wp-content/themes/twentytwentyone/404.php +++ b/wp-content/themes/twentytwentyone/404.php @@ -6,7 +6,7 @@ * * @package WordPress * @subpackage Twenty_Twenty_One - * @since 1.0.0 + * @since Twenty Twenty-One 1.0 */ get_header(); diff --git a/wp-content/themes/twentytwentyone/archive.php b/wp-content/themes/twentytwentyone/archive.php index bdff964878..23418dfc4a 100644 --- a/wp-content/themes/twentytwentyone/archive.php +++ b/wp-content/themes/twentytwentyone/archive.php @@ -6,7 +6,7 @@ * * @package WordPress * @subpackage Twenty_Twenty_One - * @since 1.0.0 + * @since Twenty Twenty-One 1.0 */ get_header(); diff --git a/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js b/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js index 30d7364d68..088ecad446 100644 --- a/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js +++ b/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js @@ -10,7 +10,7 @@ if ( document.body.classList.contains( 'twentytwentyone-supports-dark-theme' ) ) * * Wait for the editor to load by periodically checking for an element, then we add the classes. * - * @since 1.0.0 + * @since Twenty Twenty-One 1.0 * * @param {number} attempt Track the number of tries * @return {void} diff --git a/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js b/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js index 7f6130f7e7..4f3fc3caa6 100644 --- a/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js +++ b/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js @@ -9,7 +9,7 @@ * * @param {Element} el - The element. * @param {boolean} withListeners - Whether we want to add/remove listeners or not. - * @since 1.0.0 + * @since Twenty Twenty-One 1.0 */ function twentytwentyoneToggleAriaExpanded( el, withListeners ) { if ( 'true' !== el.getAttribute( 'aria-expanded' ) ) { diff --git a/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js b/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js index 730019c38c..2beed6ef25 100644 --- a/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js +++ b/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js @@ -7,7 +7,7 @@ /** * Add max-width & max-height to