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. Merges [49826] to the 5.6 branch. Fixes #51958. Built from https://develop.svn.wordpress.org/branches/5.6@49829 git-svn-id: http://core.svn.wordpress.org/branches/5.6@49548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e15b0fac76
commit
6197e8faec
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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' ) ) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/**
|
||||
* Add max-width & max-height to <iframe> elements, depending on their width & height props.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return {void}
|
||||
*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -17,7 +17,7 @@ class Twenty_Twenty_One_Custom_Colors {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
|
@ -38,7 +38,7 @@ class Twenty_Twenty_One_Custom_Colors {
|
|||
*
|
||||
* @param string $background_color The background color.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return string (hex color)
|
||||
*/
|
||||
|
@ -55,7 +55,7 @@ class Twenty_Twenty_One_Custom_Colors {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string|null $context Can be "editor" or null.
|
||||
*
|
||||
|
@ -89,7 +89,7 @@ class Twenty_Twenty_One_Custom_Colors {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -104,7 +104,7 @@ class Twenty_Twenty_One_Custom_Colors {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -129,7 +129,7 @@ class Twenty_Twenty_One_Custom_Colors {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $hex The HEX color.
|
||||
*
|
||||
|
@ -160,7 +160,7 @@ class Twenty_Twenty_One_Custom_Colors {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $classes The existing body classes.
|
||||
*
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Customize Color Control class.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @see WP_Customize_Control
|
||||
*/
|
||||
|
@ -18,7 +18,7 @@ class Twenty_Twenty_One_Customize_Color_Control extends WP_Customize_Color_Contr
|
|||
/**
|
||||
* The control type.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
|
@ -29,7 +29,7 @@ class Twenty_Twenty_One_Customize_Color_Control extends WP_Customize_Color_Contr
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
|
@ -40,7 +40,7 @@ class Twenty_Twenty_One_Customize_Color_Control extends WP_Customize_Color_Contr
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -62,7 +62,7 @@ class Twenty_Twenty_One_Customize_Color_Control extends WP_Customize_Color_Contr
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @uses WP_Customize_Control::to_json()
|
||||
*
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Customize Notice Control class.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @see WP_Customize_Control
|
||||
*/
|
||||
|
@ -18,7 +18,7 @@ class Twenty_Twenty_One_Customize_Notice_Control extends WP_Customize_Control {
|
|||
/**
|
||||
* The control type.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@ class Twenty_Twenty_One_Customize_Notice_Control extends WP_Customize_Control {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'Twenty_Twenty_One_Customize' ) ) {
|
||||
/**
|
||||
* Customizer Settings.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
class Twenty_Twenty_One_Customize {
|
||||
|
||||
|
@ -20,7 +20,7 @@ if ( ! class_exists( 'Twenty_Twenty_One_Customize' ) ) {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
public function __construct() {
|
||||
add_action( 'customize_register', array( $this, 'register' ) );
|
||||
|
@ -31,7 +31,7 @@ if ( ! class_exists( 'Twenty_Twenty_One_Customize' ) ) {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*
|
||||
|
@ -153,7 +153,7 @@ if ( ! class_exists( 'Twenty_Twenty_One_Customize' ) ) {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param bool $checked Whether or not a box is checked.
|
||||
*
|
||||
|
@ -168,7 +168,7 @@ if ( ! class_exists( 'Twenty_Twenty_One_Customize' ) ) {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -181,7 +181,7 @@ if ( ! class_exists( 'Twenty_Twenty_One_Customize' ) ) {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -17,7 +17,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
|
@ -51,7 +51,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -90,7 +90,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -110,7 +110,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -132,7 +132,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*
|
||||
|
@ -224,7 +224,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $classes The classes for <html> element.
|
||||
*
|
||||
|
@ -249,7 +249,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $classes The admin body-classes.
|
||||
*
|
||||
|
@ -282,7 +282,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -300,7 +300,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -319,7 +319,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $attrs The attributes to add to our <button> element.
|
||||
*
|
||||
|
@ -380,7 +380,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -395,7 +395,7 @@ class Twenty_Twenty_One_Dark_Mode {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -17,7 +17,7 @@
|
|||
* All icons are assumed to have equal width and height, hence the option
|
||||
* to only specify a `$size` parameter in the svg methods.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
class Twenty_Twenty_One_SVG_Icons {
|
||||
|
||||
|
@ -26,7 +26,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
*
|
||||
* @access protected
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
|
@ -44,7 +44,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
*
|
||||
* @access protected
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
|
@ -95,7 +95,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
|
||||
* specify all the domains it covers (including the .com TLD too, if applicable).
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
|
@ -150,7 +150,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $group the icon group.
|
||||
* @param string $icon The icon.
|
||||
|
@ -174,7 +174,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
* The dynamic portion of the hook name, `$group`, refers to
|
||||
* the name of the group of icons, either "ui" or "social".
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $arr Array of icons.
|
||||
*/
|
||||
|
@ -198,7 +198,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $uri Social link.
|
||||
* @param int $size The icon-size in pixels.
|
||||
|
@ -217,7 +217,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
|
||||
* specify all the domains it covers (including the .com TLD too, if applicable).
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $social_icons_map Array of default social icons.
|
||||
*/
|
||||
|
@ -226,7 +226,7 @@ class Twenty_Twenty_One_SVG_Icons {
|
|||
/**
|
||||
* Filters Twenty Twenty-One's array of social icons.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $social_icons Array of default social icons.
|
||||
*/
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// This theme requires WordPress 5.3 or later.
|
||||
|
@ -22,7 +22,7 @@ if ( ! function_exists( 'twenty_twenty_one_setup' ) ) {
|
|||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -345,7 +345,7 @@ add_action( 'after_setup_theme', 'twenty_twenty_one_setup' );
|
|||
/**
|
||||
* Register widget area.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
|
||||
*
|
||||
|
@ -372,7 +372,7 @@ add_action( 'widgets_init', 'twenty_twenty_one_widgets_init' );
|
|||
*
|
||||
* Priority 0 to make it available to lower priority callbacks.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @global int $content_width Content width.
|
||||
*
|
||||
|
@ -389,7 +389,7 @@ add_action( 'after_setup_theme', 'twenty_twenty_one_content_width', 0 );
|
|||
/**
|
||||
* Enqueue scripts and styles.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -449,7 +449,7 @@ add_action( 'wp_enqueue_scripts', 'twenty_twenty_one_scripts' );
|
|||
/**
|
||||
* Enqueue block editor script.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -488,7 +488,7 @@ add_action( 'wp_print_footer_scripts', 'twenty_twenty_one_skip_link_focus_fix' )
|
|||
|
||||
/** Enqueue non-latin language styles
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -534,7 +534,7 @@ new Twenty_Twenty_One_Dark_Mode();
|
|||
/**
|
||||
* Enqueue scripts for the customizer preview.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -560,7 +560,7 @@ add_action( 'customize_preview_init', 'twentytwentyone_customize_preview_init' )
|
|||
/**
|
||||
* Enqueue scripts for the customizer.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -579,7 +579,7 @@ add_action( 'customize_controls_enqueue_scripts', 'twentytwentyone_customize_con
|
|||
/**
|
||||
* Calculate classes for the main <html> element.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -594,7 +594,7 @@ function twentytwentyone_the_html_classes() {
|
|||
/**
|
||||
* Add "is-IE" class to body if the user is on Internet Explorer.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Display upgrade notice on theme switch.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -29,7 +29,7 @@ add_action( 'after_switch_theme', 'twenty_twenty_one_switch_theme' );
|
|||
* Prints an update nag after an unsuccessful attempt to switch to
|
||||
* the theme on WordPress versions prior to 5.3.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
*
|
||||
|
@ -48,7 +48,7 @@ function twenty_twenty_one_upgrade_notice() {
|
|||
/**
|
||||
* Prevents the Customizer from being loaded on WordPress versions prior to 5.3.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
*
|
||||
|
@ -72,7 +72,7 @@ add_action( 'load-customize.php', 'twenty_twenty_one_customize' );
|
|||
/**
|
||||
* Prevents the Theme Preview from being loaded on WordPress versions prior to 5.3.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
*
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
/**
|
||||
* Register block styles.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Generate CSS.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $selector The CSS selector.
|
||||
* @param string $style The CSS style.
|
||||
|
|
|
@ -9,14 +9,14 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add a button to top-level menu items that has sub-menus.
|
||||
* An icon is added using CSS depending on the value of aria-expanded.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $output Nav menu item start element.
|
||||
* @param object $item Nav menu item.
|
||||
|
@ -42,7 +42,7 @@ add_filter( 'walker_nav_menu_start_el', 'twenty_twenty_one_add_sub_menu_toggle',
|
|||
/**
|
||||
* Detects the social network from a URL and returns the SVG code for its icon.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $uri Social link.
|
||||
* @param int $size The icon size in pixels.
|
||||
|
@ -79,7 +79,7 @@ add_filter( 'walker_nav_menu_start_el', 'twenty_twenty_one_nav_menu_social_icons
|
|||
/**
|
||||
* Filters the arguments for a single nav menu item.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param stdClass $args An object of wp_nav_menu() arguments.
|
||||
* @param WP_Post $item Menu item data object.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
* Passes it through the `twentytwenty_starter_content` filter before returning.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return array A filtered array of args for the starter_content.
|
||||
*/
|
||||
|
@ -176,7 +176,7 @@ function twenty_twenty_one_get_starter_content() {
|
|||
/**
|
||||
* Filters the array of starter content.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $starter_content Array of starter content.
|
||||
*/
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds custom classes to the array of body classes.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $classes Classes for the body element.
|
||||
*
|
||||
|
@ -41,7 +41,7 @@ add_filter( 'body_class', 'twenty_twenty_one_body_classes' );
|
|||
/**
|
||||
* Adds custom class to the array of posts classes.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $classes An array of CSS classes.
|
||||
*
|
||||
|
@ -57,7 +57,7 @@ add_filter( 'post_class', 'twenty_twenty_one_post_classes', 10, 3 );
|
|||
/**
|
||||
* Add a pingback url auto-discovery header for single posts, pages, or attachments.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -71,7 +71,7 @@ add_action( 'wp_head', 'twenty_twenty_one_pingback_header' );
|
|||
/**
|
||||
* Remove the `no-js` class from body if JS is supported.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -83,7 +83,7 @@ add_action( 'wp_footer', 'twenty_twenty_one_supports_js' );
|
|||
/**
|
||||
* Changes comment form default fields.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $defaults The form defaults.
|
||||
*
|
||||
|
@ -101,7 +101,7 @@ add_filter( 'comment_form_defaults', 'twenty_twenty_one_comment_form_defaults' )
|
|||
/**
|
||||
* Determines if post thumbnail can be displayed.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -115,7 +115,7 @@ function twenty_twenty_one_can_show_post_thumbnail() {
|
|||
/**
|
||||
* Returns the size for avatars used in the theme.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
|
@ -164,7 +164,7 @@ if ( ! function_exists( 'twenty_twenty_one_post_title' ) ) {
|
|||
/**
|
||||
* Add a title to posts and pages that are missing titles.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $title The title.
|
||||
*
|
||||
|
@ -179,7 +179,7 @@ add_filter( 'the_title', 'twenty_twenty_one_post_title' );
|
|||
/**
|
||||
* Gets the SVG code for a given icon.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $group The icon group.
|
||||
* @param string $icon The icon.
|
||||
|
@ -323,7 +323,7 @@ function twenty_twenty_one_get_non_latin_css( $type = 'front-end' ) {
|
|||
/**
|
||||
* Print the first instance of a block in the content, and then break away.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param string $block_name The full block type name, or a partial match.
|
||||
* Example: `core/image`, `core-embed/*`.
|
||||
|
@ -386,7 +386,7 @@ function twenty_twenty_one_print_first_instance_of_block( $block_name, $content
|
|||
/**
|
||||
* Retrieve protected post password form content.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
|
||||
* @return string HTML content for password form for password protected post.
|
||||
|
@ -405,7 +405,7 @@ add_filter( 'the_password_form', 'twenty_twenty_one_password_form' );
|
|||
/**
|
||||
* Filters the list of attachment image attributes.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @param array $attr Array of attribute values for the image markup, keyed by attribute name.
|
||||
* See wp_get_attachment_image().
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'twenty_twenty_one_posted_on' ) ) {
|
||||
/**
|
||||
* Prints HTML with meta information for the current post-date/time.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -37,7 +37,7 @@ if ( ! function_exists( 'twenty_twenty_one_posted_by' ) ) {
|
|||
/**
|
||||
* Prints HTML with meta information about theme author.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -59,7 +59,7 @@ if ( ! function_exists( 'twenty_twenty_one_entry_meta_footer' ) ) {
|
|||
* Prints HTML with meta information for the categories, tags and comments.
|
||||
* Footer entry meta is displayed differently in archives and single posts.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -176,7 +176,7 @@ if ( ! function_exists( 'twenty_twenty_one_post_thumbnail' ) ) {
|
|||
* Wraps the post thumbnail in an anchor element on index views, or a div
|
||||
* element when on single views.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -218,7 +218,7 @@ if ( ! function_exists( 'twenty_twenty_one_the_posts_navigation' ) ) {
|
|||
/**
|
||||
* Print the next and previous posts navigation.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// Print the full content.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
$content = get_the_content();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// If there are paragraph blocks, print up to two.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// Print the 1st gallery found.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// If there is no featured-image, print the first image block found.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// Print the 1st instance of a paragraph block. If none is found, print the content.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
$content = get_the_content();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// Print the full content.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
$content = get_the_content();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
the_excerpt();
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
// Don't show the title if the post-format is `aside` or `status`.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
$blog_info = get_bloginfo( 'name' );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
$wrapper_classes = 'site-header';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_One
|
||||
* @since 1.0.0
|
||||
* @since Twenty Twenty-One 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6.1-alpha-49828';
|
||||
$wp_version = '5.6.1-alpha-49829';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue