From f749bbac90c0e7d5adb1681bed71932b05372997 Mon Sep 17 00:00:00 2001 From: VladimirAus Date: Mon, 21 Jul 2025 02:18:29 +1000 Subject: [PATCH 01/13] 58849: Document supported for register_rest_route(). --- src/wp-includes/rest-api.php | 55 ++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php index 836e0e5ec8a23..ae20e18c0a2d8 100644 --- a/src/wp-includes/rest-api.php +++ b/src/wp-includes/rest-api.php @@ -19,17 +19,62 @@ * * Note: Do not use before the {@see 'rest_api_init'} hook. * + * Example usage: + * ```php + * add_action( 'rest_api_init', function () { + * register_rest_route( 'my-plugin/v1', '/settings', array( + * 'methods' => 'GET', + * 'callback' => 'my_plugin_get_settings', + * 'permission_callback' => function () { + * // Only allow users who can manage options. + * return current_user_can( 'manage_options' ); + * }, + * ) ); + * } ); + * ``` + * * @since 4.4.0 * @since 5.1.0 Added a `_doing_it_wrong()` notice when not called on or after the `rest_api_init` hook. * @since 5.5.0 Added a `_doing_it_wrong()` notice when the required `permission_callback` argument is not set. * * @param string $route_namespace The first URL segment after core prefix. Should be unique to your package/plugin. - * @param string $route The base URL for route you are adding. - * @param array $args Optional. Either an array of options for the endpoint, or an array of arrays for - * multiple methods. Default empty array. - * @param bool $override Optional. If the route already exists, should we override it? True overrides, - * false merges (with newer overriding if duplicate keys exist). Default false. + * @param string $route The base URL for route to be added with support for regular expressions. + * Example: '/posts/(?P[\d]+)'. + * @param array $args { + * Optional. An array of options for the endpoint. This can be a single associative + * array for one endpoint, or an array of associative arrays for multiple endpoints. + * Default empty array. + * + * @type string|array $methods Required. HTTP method(s) the route + * responds to. Can be a string or an array + * (e.g. 'GET', 'POST', ['GET', 'POST']). + * @type callable $callback Required. The callback function to handle + * the request. Accepts a `WP_REST_Request` + * and returns a `WP_REST_Response` or array. + * @type callable $permission_callback Required. A function to check if the + * request has permission. Must return + * `true` or `WP_Error`. + * @type array $args { + * Optional. An associative array of argument schema for validation and + * sanitization. + * Keys are argument names, values are arrays of argument options: + * + * @type bool $required Whether this parameter is required. + * Default false. + * @type string $type Data type: 'string', 'integer', 'boolean', + * 'array', etc. + * @type mixed $default Default value if the parameter is not + * provided. + * @type callable $validate_callback Callback to validate the parameter. + * @type callable $sanitize_callback Callback to sanitize the parameter. + * @type array $enum Allowed values (enumeration). + * @type array $items Schema for array items if type is 'array'. + * } + * } + * @param bool $override Optional. True to override existing route, false to merge (with newer overriding + * if duplicate keys exist). Default false. * @return bool True on success, false on error. + * */ function register_rest_route( $route_namespace, $route, $args = array(), $override = false ) { if ( empty( $route_namespace ) ) { From 23eae547a3ee3625014ba2f80be0c7eb2a3a3105 Mon Sep 17 00:00:00 2001 From: VladimirAus Date: Wed, 23 Jul 2025 11:36:43 +1000 Subject: [PATCH 02/13] [#63692] General verb refactoring. --- .../themes/twentyeleven/functions.php | 24 ++++++------- .../twentyeleven/inc/block-patterns.php | 4 +-- .../themes/twentyeleven/inc/theme-options.php | 10 +++--- .../themes/twentyeleven/inc/widgets.php | 2 +- .../themes/twentyeleven/showcase.php | 2 +- .../themes/twentyfifteen/functions.php | 26 +++++++------- .../themes/twentyfifteen/inc/back-compat.php | 2 +- .../twentyfifteen/inc/block-patterns.php | 4 +-- .../twentyfifteen/inc/custom-header.php | 2 +- .../themes/twentyfifteen/inc/customizer.php | 6 ++-- .../twentyfifteen/inc/template-tags.php | 4 +-- .../twentyfifteen/js/color-scheme-control.js | 2 +- .../themes/twentyfifteen/js/functions.js | 2 +- .../themes/twentyfourteen/functions.php | 26 +++++++------- .../themes/twentyfourteen/inc/back-compat.php | 2 +- .../twentyfourteen/inc/block-patterns.php | 4 +-- .../twentyfourteen/inc/custom-header.php | 4 +-- .../themes/twentyfourteen/inc/customizer.php | 4 +-- .../twentyfourteen/inc/featured-content.php | 16 ++++----- .../twentyfourteen/inc/template-tags.php | 10 +++--- .../themes/twentyfourteen/inc/widgets.php | 4 +-- .../themes/twentyfourteen/js/functions.js | 2 +- .../themes/twentyfourteen/js/slider.js | 4 +-- .../themes/twentynineteen/functions.php | 14 ++++---- .../twentynineteen/inc/block-patterns.php | 4 +-- .../twentynineteen/inc/color-patterns.php | 8 ++--- .../themes/twentynineteen/inc/customizer.php | 2 +- .../twentynineteen/inc/icon-functions.php | 4 +-- .../themes/twentynineteen/js/priority-menu.js | 2 +- .../js/touch-keyboard-navigation.js | 2 +- .../twentynineteen/sass/_normalize.scss | 16 ++++----- .../site/header/_site-featured-image.scss | 2 +- .../themes/twentynineteen/style-rtl.css | 18 +++++----- .../themes/twentynineteen/style.css | 18 +++++----- .../twentyseventeen/assets/js/global.js | 6 ++-- .../twentyseventeen/assets/js/navigation.js | 4 +-- .../themes/twentyseventeen/functions.php | 36 +++++++++---------- .../twentyseventeen/inc/block-patterns.php | 14 ++++---- .../twentyseventeen/inc/custom-header.php | 2 +- .../themes/twentyseventeen/inc/customizer.php | 2 +- .../twentyseventeen/inc/icon-functions.php | 14 ++++---- .../themes/twentysixteen/functions.php | 16 ++++----- .../twentysixteen/inc/block-patterns.php | 4 +-- .../twentysixteen/js/color-scheme-control.js | 2 +- .../themes/twentyten/block-patterns.php | 4 +-- src/wp-content/themes/twentyten/functions.php | 20 +++++------ .../themes/twentythirteen/functions.php | 28 +++++++-------- .../themes/twentythirteen/inc/back-compat.php | 2 +- .../twentythirteen/inc/block-patterns.php | 4 +-- .../twentythirteen/inc/custom-header.php | 6 ++-- .../themes/twentythirteen/js/functions.js | 2 +- .../themes/twentytwelve/functions.php | 28 +++++++-------- .../twentytwelve/inc/block-patterns.php | 4 +-- .../themes/twentytwelve/inc/custom-header.php | 6 ++-- .../assets/js/color-calculations.js | 8 ++--- .../assets/js/customize-preview.js | 2 +- .../themes/twentytwenty/assets/js/index.js | 6 ++-- .../classes/class-twentytwenty-customize.php | 2 +- ...class-twentytwenty-non-latin-languages.php | 2 +- .../classes/class-twentytwenty-svg-icons.php | 4 +-- .../themes/twentytwenty/functions.php | 32 ++++++++--------- .../twentytwenty/inc/block-patterns.php | 4 +-- .../themes/twentytwenty/inc/custom-css.php | 2 +- .../twentytwenty/inc/starter-content.php | 2 +- .../themes/twentytwenty/inc/svg-icons.php | 2 +- .../themes/twentytwenty/inc/template-tags.php | 8 ++--- .../themes/twentytwentyfour/functions.php | 12 +++---- .../themes/twentytwentyone/assets/css/ie.css | 22 ++++++------ .../assets/js/customize-helpers.js | 4 +-- .../assets/js/editor-dark-mode-support.js | 2 +- .../assets/js/responsive-embeds.js | 4 +-- .../assets/sass/03-generic/normalize.scss | 16 ++++----- .../sass/03-generic/vertical-margins.scss | 6 ++-- .../class-twenty-twenty-one-custom-colors.php | 2 +- ...nty-twenty-one-customize-color-control.php | 2 +- .../class-twenty-twenty-one-customize.php | 4 +-- .../themes/twentytwentyone/functions.php | 6 ++-- .../themes/twentytwentyone/image.php | 2 +- .../twentytwentyone/inc/back-compat.php | 2 +- .../twentytwentyone/inc/block-patterns.php | 6 ++-- .../twentytwentyone/inc/block-styles.php | 2 +- .../twentytwentyone/inc/menu-functions.php | 2 +- .../twentytwentyone/inc/starter-content.php | 2 +- .../inc/template-functions.php | 6 ++-- .../themes/twentytwentyone/style-rtl.css | 22 ++++++------ .../themes/twentytwentyone/style.css | 22 ++++++------ .../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 +- .../themes/twentytwentytwo/functions.php | 2 +- 97 files changed, 351 insertions(+), 351 deletions(-) diff --git a/src/wp-content/themes/twentyeleven/functions.php b/src/wp-content/themes/twentyeleven/functions.php index 1891e6d663997..e8318076178ef 100644 --- a/src/wp-content/themes/twentyeleven/functions.php +++ b/src/wp-content/themes/twentyeleven/functions.php @@ -40,7 +40,7 @@ * @since Twenty Eleven 1.0 */ -// Set the content width based on the theme's design and stylesheet. +// Sets the content width based on the theme's design and stylesheet. if ( ! isset( $content_width ) ) { $content_width = 584; } @@ -52,7 +52,7 @@ if ( ! function_exists( 'twentyeleven_setup' ) ) : /** - * Set up theme defaults and registers support for various WordPress features. + * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating @@ -231,7 +231,7 @@ function twentyeleven_setup() { set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); /* - * Add Twenty Eleven's custom image sizes. + * Adds Twenty Eleven's custom image sizes. * Used for large feature (header) images. */ add_image_size( 'large-feature', $custom_header_support['width'], $custom_header_support['height'], true ); @@ -298,7 +298,7 @@ function twentyeleven_setup() { endif; // twentyeleven_setup() /** - * Enqueue scripts and styles for front end. + * Enqueues scripts and styles for front end. * * @since Twenty Eleven 2.9 */ @@ -309,7 +309,7 @@ function twentyeleven_scripts_styles() { add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' ); /** - * Enqueue styles for the block-based editor. + * Enqueues styles for the block-based editor. * * @since Twenty Eleven 2.9 */ @@ -473,7 +473,7 @@ function twentyeleven_header_image() { endif; // twentyeleven_header_image() /** - * Set the post excerpt length to 40 words. + * Sets the post excerpt length to 40 words. * * To override this length in a child theme, remove * the filter and add your own function tied to @@ -524,7 +524,7 @@ function twentyeleven_auto_excerpt_more( $more ) { add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' ); /** - * Add a pretty "Continue Reading" link to custom post excerpts. + * Adds a pretty "Continue Reading" link to custom post excerpts. * * To override this link in a child theme, remove the filter and add your own * function tied to the get_the_excerpt filter hook. @@ -543,7 +543,7 @@ function twentyeleven_custom_excerpt_more( $output ) { add_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' ); /** - * Show a home link for the wp_nav_menu() fallback, wp_page_menu(). + * Shows a home link for the wp_nav_menu() fallback, wp_page_menu(). * * @since Twenty Eleven 1.0 * @@ -559,7 +559,7 @@ function twentyeleven_page_menu_args( $args ) { add_filter( 'wp_page_menu_args', 'twentyeleven_page_menu_args' ); /** - * Register sidebars and widgetized areas. + * Registers sidebars and widgetized areas. * * Also register the default Ephemera widget. * @@ -632,7 +632,7 @@ function twentyeleven_widgets_init() { if ( ! function_exists( 'twentyeleven_content_nav' ) ) : /** - * Display navigation to next/previous pages when applicable. + * Displays navigation to next/previous pages when applicable. * * @since Twenty Eleven 1.0 * @@ -851,7 +851,7 @@ function twentyeleven_posted_on() { endif; /** - * Add two classes to the array of body classes. + * Adds two classes to the array of body classes. * * The first is if the site has only had one author with published posts. * The second is if a singular post being displayed @@ -876,7 +876,7 @@ function twentyeleven_body_classes( $classes ) { add_filter( 'body_class', 'twentyeleven_body_classes' ); /** - * Retrieve the IDs for images in a gallery. + * Retrieves the IDs for images in a gallery. * * @uses get_post_galleries() First, if available. Falls back to shortcode parsing, * then as last option uses a get_posts() call. diff --git a/src/wp-content/themes/twentyeleven/inc/block-patterns.php b/src/wp-content/themes/twentyeleven/inc/block-patterns.php index 27b37be5005ce..14b2e678c4ce4 100644 --- a/src/wp-content/themes/twentyeleven/inc/block-patterns.php +++ b/src/wp-content/themes/twentyeleven/inc/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { diff --git a/src/wp-content/themes/twentyeleven/inc/theme-options.php b/src/wp-content/themes/twentyeleven/inc/theme-options.php index 34e9c0290b6d1..37535a4bb0a38 100644 --- a/src/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/src/wp-content/themes/twentyeleven/inc/theme-options.php @@ -24,7 +24,7 @@ function twentyeleven_admin_enqueue_scripts( $hook_suffix ) { add_action( 'admin_print_styles-appearance_page_theme_options', 'twentyeleven_admin_enqueue_scripts' ); /** - * Register the form setting for our twentyeleven_options array. + * Registers the form setting for our twentyeleven_options array. * * This function is attached to the admin_init action hook. * @@ -84,7 +84,7 @@ function twentyeleven_option_page_capability( $capability ) { add_filter( 'option_page_capability_twentyeleven_options', 'twentyeleven_option_page_capability' ); /** - * Add a theme options page to the admin menu, including some help documentation. + * Adds a theme options page to the admin menu, including some help documentation. * * This function is attached to the admin_menu action hook. * @@ -409,7 +409,7 @@ function twentyeleven_theme_options_validate( $input ) { } /** - * Enqueue the styles for the current color scheme. + * Enqueues the styles for the current color scheme. * * @since Twenty Eleven 1.0 */ @@ -433,7 +433,7 @@ function twentyeleven_enqueue_color_scheme() { add_action( 'wp_enqueue_scripts', 'twentyeleven_enqueue_color_scheme' ); /** - * Add a style block to the theme for the current link color. + * Adds a style block to the theme for the current link color. * * This function is attached to the wp_head action hook. * @@ -482,7 +482,7 @@ function twentyeleven_print_link_color_style() { add_action( 'wp_head', 'twentyeleven_print_link_color_style' ); /** - * Add Twenty Eleven layout classes to the array of body classes. + * Adds Twenty Eleven layout classes to the array of body classes. * * @since Twenty Eleven 1.0 * diff --git a/src/wp-content/themes/twentyeleven/inc/widgets.php b/src/wp-content/themes/twentyeleven/inc/widgets.php index 7335daad86588..48d140578f426 100644 --- a/src/wp-content/themes/twentyeleven/inc/widgets.php +++ b/src/wp-content/themes/twentyeleven/inc/widgets.php @@ -181,7 +181,7 @@ public function flush_widget_cache() { } /** - * Set up the widget form. + * Sets up the widget form. * * Displays the form for this widget on the Widgets page of the WP Admin area. * diff --git a/src/wp-content/themes/twentyeleven/showcase.php b/src/wp-content/themes/twentyeleven/showcase.php index a46fed329cd69..4a01d7c6f9ee6 100644 --- a/src/wp-content/themes/twentyeleven/showcase.php +++ b/src/wp-content/themes/twentyeleven/showcase.php @@ -208,7 +208,7 @@ if ( $recent->have_posts() ) : $recent->the_post(); - // Set $more to 0 in order to only get the first part of the post. + // Sets $more to 0 in order to only get the first part of the post. global $more; $more = 0; diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php index 0e4e0a7963aef..e3d23b66ceea1 100644 --- a/src/wp-content/themes/twentyfifteen/functions.php +++ b/src/wp-content/themes/twentyfifteen/functions.php @@ -2,7 +2,7 @@ /** * Twenty Fifteen functions and definitions * - * Set up the theme and provides some helper functions, which are used in the + * Sets up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * @@ -26,7 +26,7 @@ */ /** - * Set the content width based on the theme's design and stylesheet. + * Sets the content width based on the theme's design and stylesheet. * * @since Twenty Fifteen 1.0 */ @@ -97,7 +97,7 @@ function twentyfifteen_setup() { ); /* - * Switch default core markup for search form, comment form, and comments + * Switches default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( @@ -338,7 +338,7 @@ function twentyfifteen_setup() { add_action( 'after_setup_theme', 'twentyfifteen_setup' ); /** - * Register widget area. + * Registers widget area. * * @since Twenty Fifteen 1.0 * @@ -361,7 +361,7 @@ function twentyfifteen_widgets_init() { if ( ! function_exists( 'twentyfifteen_fonts_url' ) ) : /** - * Register fonts for Twenty Fifteen. + * Registers fonts for Twenty Fifteen. * * @since Twenty Fifteen 1.0 * @since Twenty Fifteen 3.4 Replaced Google URL with self-hosted fonts. @@ -417,7 +417,7 @@ function twentyfifteen_javascript_detection() { add_action( 'wp_head', 'twentyfifteen_javascript_detection', 0 ); /** - * Enqueue scripts and styles. + * Enqueues scripts and styles. * * @since Twenty Fifteen 1.0 */ @@ -478,7 +478,7 @@ function twentyfifteen_scripts() { add_action( 'wp_enqueue_scripts', 'twentyfifteen_scripts' ); /** - * Enqueue styles for the block-based editor. + * Enqueues styles for the block-based editor. * * @since Twenty Fifteen 2.1 */ @@ -493,7 +493,7 @@ function twentyfifteen_block_editor_styles() { /** - * Add preconnect for Google Fonts. + * Adds preconnect for Google Fonts. * * @since Twenty Fifteen 1.7 * @deprecated Twenty Fifteen 3.4 Disabled filter because, by default, fonts are self-hosted. @@ -519,7 +519,7 @@ function twentyfifteen_resource_hints( $urls, $relation_type ) { // add_filter( 'wp_resource_hints', 'twentyfifteen_resource_hints', 10, 2 ); /** - * Add featured image as background image to post navigation elements. + * Adds featured image as background image to post navigation elements. * * @since Twenty Fifteen 1.0 * @@ -561,7 +561,7 @@ function twentyfifteen_post_nav_background() { add_action( 'wp_enqueue_scripts', 'twentyfifteen_post_nav_background' ); /** - * Display descriptions in main navigation. + * Displays descriptions in main navigation. * * @since Twenty Fifteen 1.0 * @@ -581,7 +581,7 @@ function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) { add_filter( 'walker_nav_menu_start_el', 'twentyfifteen_nav_description', 10, 4 ); /** - * Add a `screen-reader-text` class to the search form's submit button. + * Adds a `screen-reader-text` class to the search form's submit button. * * @since Twenty Fifteen 1.0 * @@ -636,7 +636,7 @@ function twentyfifteen_author_bio_template( $template ) { /** - * Implement the Custom Header feature. + * Implements the Custom Header feature. * * @since Twenty Fifteen 1.0 */ @@ -657,7 +657,7 @@ function twentyfifteen_author_bio_template( $template ) { require get_template_directory() . '/inc/customizer.php'; /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Fifteen 3.9 */ diff --git a/src/wp-content/themes/twentyfifteen/inc/back-compat.php b/src/wp-content/themes/twentyfifteen/inc/back-compat.php index 6b871f5e0edfc..457fa94de83b9 100644 --- a/src/wp-content/themes/twentyfifteen/inc/back-compat.php +++ b/src/wp-content/themes/twentyfifteen/inc/back-compat.php @@ -26,7 +26,7 @@ function twentyfifteen_switch_theme() { add_action( 'after_switch_theme', 'twentyfifteen_switch_theme' ); /** - * Add message for unsuccessful theme switch. + * Adds message for unsuccessful theme switch. * * Prints an update nag after an unsuccessful attempt to switch to * Twenty Fifteen on WordPress versions prior to 4.1. diff --git a/src/wp-content/themes/twentyfifteen/inc/block-patterns.php b/src/wp-content/themes/twentyfifteen/inc/block-patterns.php index 0e220d3ebe97a..58756e9ae219a 100644 --- a/src/wp-content/themes/twentyfifteen/inc/block-patterns.php +++ b/src/wp-content/themes/twentyfifteen/inc/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { diff --git a/src/wp-content/themes/twentyfifteen/inc/custom-header.php b/src/wp-content/themes/twentyfifteen/inc/custom-header.php index 0305c69027bfa..462ace4544348 100644 --- a/src/wp-content/themes/twentyfifteen/inc/custom-header.php +++ b/src/wp-content/themes/twentyfifteen/inc/custom-header.php @@ -8,7 +8,7 @@ */ /** - * Set up the WordPress core custom header feature. + * Sets up the WordPress core custom header feature. * * @uses twentyfifteen_header_style() */ diff --git a/src/wp-content/themes/twentyfifteen/inc/customizer.php b/src/wp-content/themes/twentyfifteen/inc/customizer.php index 6e8451dd3e7b7..e64daecf63652 100644 --- a/src/wp-content/themes/twentyfifteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfifteen/inc/customizer.php @@ -8,7 +8,7 @@ */ /** - * Add postMessage support for site title and description for the Customizer. + * Adds postMessage support for site title and description for the Customizer. * * @since Twenty Fifteen 1.0 * @@ -139,7 +139,7 @@ function twentyfifteen_customize_partial_blogdescription() { } /** - * Register color schemes for Twenty Fifteen. + * Registers color schemes for Twenty Fifteen. * * Can be filtered with {@see 'twentyfifteen_color_schemes'}. * @@ -252,7 +252,7 @@ function twentyfifteen_get_color_schemes() { if ( ! function_exists( 'twentyfifteen_get_color_scheme' ) ) : /** - * Get the current Twenty Fifteen color scheme. + * Gets the current Twenty Fifteen color scheme. * * @since Twenty Fifteen 1.0 * diff --git a/src/wp-content/themes/twentyfifteen/inc/template-tags.php b/src/wp-content/themes/twentyfifteen/inc/template-tags.php index 475e6cfe613c2..fb5d2d90df120 100644 --- a/src/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -11,7 +11,7 @@ if ( ! function_exists( 'twentyfifteen_comment_nav' ) ) : /** - * Display navigation to next/previous comments when applicable. + * Displays navigation to next/previous comments when applicable. * * @since Twenty Fifteen 1.0 */ @@ -199,7 +199,7 @@ function twentyfifteen_category_transient_flusher() { if ( ! function_exists( 'twentyfifteen_post_thumbnail' ) ) : /** - * Display an optional post thumbnail. + * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. diff --git a/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js b/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js index 356323963f5c5..275d8a7a12b29 100644 --- a/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js +++ b/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js @@ -1,6 +1,6 @@ /* global colorScheme, Color */ /** - * Add a listener to the Color Scheme control to update other color controls to new values/defaults. + * Adds a listener to the Color Scheme control to update other color controls to new values/defaults. * Also trigger an update of the Color Scheme CSS when a color is changed. */ diff --git a/src/wp-content/themes/twentyfifteen/js/functions.js b/src/wp-content/themes/twentyfifteen/js/functions.js index f4b80c7e73ac5..eb7072c3d8c1a 100644 --- a/src/wp-content/themes/twentyfifteen/js/functions.js +++ b/src/wp-content/themes/twentyfifteen/js/functions.js @@ -92,7 +92,7 @@ } )(); /** - * Add or remove ARIA attributes. + * Adds or remove ARIA attributes. * * Uses jQuery's width() function to determine the size of the window and add * the default ARIA attributes for the menu toggle if it's visible. diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index 8958126618292..73a19d3fd0582 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -2,7 +2,7 @@ /** * Twenty Fourteen functions and definitions * - * Set up the theme and provides some helper functions, which are used in the + * Sets up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * @@ -26,7 +26,7 @@ */ /** - * Set up the content width value based on the theme's design. + * Sets up the content width value based on the theme's design. * * @see twentyfourteen_content_width() * @@ -47,7 +47,7 @@ /** * Twenty Fourteen setup. * - * Set up theme defaults and registers support for various WordPress features. + * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such @@ -148,7 +148,7 @@ function twentyfourteen_setup() { ); /* - * Switch default core markup for search form, comment form, and comments + * Switches default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( @@ -264,7 +264,7 @@ function twentyfourteen_has_featured_posts() { } /** - * Register three Twenty Fourteen widget areas. + * Registers three Twenty Fourteen widget areas. * * @since Twenty Fourteen 1.0 */ @@ -310,7 +310,7 @@ function twentyfourteen_widgets_init() { if ( ! function_exists( 'twentyfourteen_font_url' ) ) : /** - * Register Lato font for Twenty Fourteen. + * Registers Lato font for Twenty Fourteen. * * @since Twenty Fourteen 1.0 * @since Twenty Fourteen 3.6 Replaced Google URL with self-hosted fonts. @@ -332,7 +332,7 @@ function twentyfourteen_font_url() { endif; /** - * Enqueue scripts and styles for the front end. + * Enqueues scripts and styles for the front end. * * @since Twenty Fourteen 1.0 */ @@ -401,7 +401,7 @@ function twentyfourteen_scripts() { add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' ); /** - * Enqueue font stylesheet to admin screen for custom header display. + * Enqueues font stylesheet to admin screen for custom header display. * * @since Twenty Fourteen 1.0 */ @@ -412,7 +412,7 @@ function twentyfourteen_admin_fonts() { add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' ); /** - * Add preconnect for Google Fonts. + * Adds preconnect for Google Fonts. * * @since Twenty Fourteen 1.9 * @deprecated Twenty Fourteen 3.6 Disabled filter because, by default, fonts are self-hosted. @@ -438,7 +438,7 @@ function twentyfourteen_resource_hints( $urls, $relation_type ) { // add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 ); /** - * Enqueue styles for the block-based editor. + * Enqueues styles for the block-based editor. * * @since Twenty Fourteen 2.3 */ @@ -729,7 +729,7 @@ function twentyfourteen_widget_tag_cloud_args( $args ) { require get_template_directory() . '/inc/customizer.php'; /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Fourteen 4.1 */ @@ -740,7 +740,7 @@ function twentyfourteen_register_block_patterns() { add_action( 'init', 'twentyfourteen_register_block_patterns' ); /* - * Add Featured Content functionality. + * Adds Featured Content functionality. * * To overwrite in a plugin, define your own Featured_Content class on or * before the 'setup_theme' hook. @@ -750,7 +750,7 @@ function twentyfourteen_register_block_patterns() { } /** - * Add an `is_customize_preview` function if it is missing. + * Adds an `is_customize_preview` function if it is missing. * * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the * `is_customize_preview` function was introduced. diff --git a/src/wp-content/themes/twentyfourteen/inc/back-compat.php b/src/wp-content/themes/twentyfourteen/inc/back-compat.php index a0e0b118d63b1..243dff56aa25c 100644 --- a/src/wp-content/themes/twentyfourteen/inc/back-compat.php +++ b/src/wp-content/themes/twentyfourteen/inc/back-compat.php @@ -26,7 +26,7 @@ function twentyfourteen_switch_theme() { add_action( 'after_switch_theme', 'twentyfourteen_switch_theme' ); /** - * Add message for unsuccessful theme switch. + * Adds message for unsuccessful theme switch. * * Prints an update nag after an unsuccessful attempt to switch to * Twenty Fourteen on WordPress versions prior to 3.6. diff --git a/src/wp-content/themes/twentyfourteen/inc/block-patterns.php b/src/wp-content/themes/twentyfourteen/inc/block-patterns.php index b3bc376192074..0cce1b1e690b9 100644 --- a/src/wp-content/themes/twentyfourteen/inc/block-patterns.php +++ b/src/wp-content/themes/twentyfourteen/inc/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { diff --git a/src/wp-content/themes/twentyfourteen/inc/custom-header.php b/src/wp-content/themes/twentyfourteen/inc/custom-header.php index 1fe2734f5acd0..d4afcb6c805c3 100644 --- a/src/wp-content/themes/twentyfourteen/inc/custom-header.php +++ b/src/wp-content/themes/twentyfourteen/inc/custom-header.php @@ -1,6 +1,6 @@ Reading screen. + * Registers custom setting on the Settings -> Reading screen. * * @since Twenty Fourteen 1.0 */ @@ -369,7 +369,7 @@ public static function register_setting() { } /** - * Add settings to the Customizer. + * Adds settings to the Customizer. * * @since Twenty Fourteen 1.0 * @@ -430,7 +430,7 @@ public static function customize_register( $wp_customize ) { } /** - * Enqueue the tag suggestion script. + * Enqueues the tag suggestion script. * * @since Twenty Fourteen 1.0 */ @@ -439,9 +439,9 @@ public static function enqueue_scripts() { } /** - * Get featured content settings. + * Gets featured content settings. * - * Get all settings recognized by this module. This function + * Gets all settings recognized by this module. This function * will return all settings whether or not they have been stored * in the database yet. This ensures that all keys are available * at all times. diff --git a/src/wp-content/themes/twentyfourteen/inc/template-tags.php b/src/wp-content/themes/twentyfourteen/inc/template-tags.php index 26def1afc0959..eb61f2d85e11a 100644 --- a/src/wp-content/themes/twentyfourteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfourteen/inc/template-tags.php @@ -9,7 +9,7 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) : /** - * Display navigation to next/previous set of posts when applicable. + * Displays navigation to next/previous set of posts when applicable. * * @since Twenty Fourteen 1.0 * @@ -39,7 +39,7 @@ function twentyfourteen_paging_nav() { $format = $wp_rewrite->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; $format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%'; - // Set up paginated links. + // Sets up paginated links. $links = paginate_links( array( 'base' => $pagenum_link, @@ -74,7 +74,7 @@ function twentyfourteen_paging_nav() { if ( ! function_exists( 'twentyfourteen_post_nav' ) ) : /** - * Display navigation to next/previous post when applicable. + * Displays navigation to next/previous post when applicable. * * @since Twenty Fourteen 1.0 */ @@ -121,7 +121,7 @@ function twentyfourteen_posted_on() { echo '' . __( 'Sticky', 'twentyfourteen' ) . ''; } - // Set up and print post meta information. + // Sets up and print post meta information. printf( ' ', esc_url( get_permalink() ), @@ -179,7 +179,7 @@ function twentyfourteen_category_transient_flusher() { if ( ! function_exists( 'twentyfourteen_post_thumbnail' ) ) : /** - * Display an optional post thumbnail. + * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index * views, or a div element when on single views. diff --git a/src/wp-content/themes/twentyfourteen/inc/widgets.php b/src/wp-content/themes/twentyfourteen/inc/widgets.php index bde40f1569714..dc014bcc0746e 100644 --- a/src/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/src/wp-content/themes/twentyfourteen/inc/widgets.php @@ -45,7 +45,7 @@ public function __construct() { } /** - * Enqueue scripts. + * Enqueues scripts. * * @since Twenty Fourteen 1.7 */ @@ -280,7 +280,7 @@ public function update( $new_instance, $old_instance ) { } /** - * Display the form for this widget on the Widgets page of the Admin area. + * Displays the form for this widget on the Widgets page of the Admin area. * * @since Twenty Fourteen 1.0 * diff --git a/src/wp-content/themes/twentyfourteen/js/functions.js b/src/wp-content/themes/twentyfourteen/js/functions.js index d9588ee48dd4e..b40bd5badbe68 100644 --- a/src/wp-content/themes/twentyfourteen/js/functions.js +++ b/src/wp-content/themes/twentyfourteen/js/functions.js @@ -95,7 +95,7 @@ } ); /** - * Add or remove ARIA attributes. + * Adds or remove ARIA attributes. * * Uses jQuery's width() function to determine the size of the window and add * the default ARIA attributes for the menu toggle if it's visible. diff --git a/src/wp-content/themes/twentyfourteen/js/slider.js b/src/wp-content/themes/twentyfourteen/js/slider.js index 1a08c6263af64..13f7e4c51fd64 100644 --- a/src/wp-content/themes/twentyfourteen/js/slider.js +++ b/src/wp-content/themes/twentyfourteen/js/slider.js @@ -138,7 +138,7 @@ } } - // Set up flags to prevent event duplication. + // Sets up flags to prevent event duplication. if ( watchedEvent === '' ) { watchedEvent = event.type; } @@ -190,7 +190,7 @@ slider.featureAnimate( target ); } - // Set up flags to prevent event duplication. + // Sets up flags to prevent event duplication. if ( watchedEvent === '' ) { watchedEvent = event.type; } diff --git a/src/wp-content/themes/twentynineteen/functions.php b/src/wp-content/themes/twentynineteen/functions.php index c64ddc6748f97..dd9aa7271e184 100644 --- a/src/wp-content/themes/twentynineteen/functions.php +++ b/src/wp-content/themes/twentynineteen/functions.php @@ -56,7 +56,7 @@ function twentynineteen_setup() { ); /* - * Switch default core markup for search form, comment form, and comments + * Switches default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( @@ -74,7 +74,7 @@ function twentynineteen_setup() { ); /** - * Add support for core custom logo. + * Adds support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ @@ -190,7 +190,7 @@ function wp_get_list_item_separator() { endif; /** - * Register widget area. + * Registers widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ @@ -235,7 +235,7 @@ function twentynineteen_excerpt_more( $link ) { add_filter( 'excerpt_more', 'twentynineteen_excerpt_more' ); /** - * Set the content width in pixels, based on the theme's design and stylesheet. + * Sets the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * @@ -311,7 +311,7 @@ function twentynineteen_skip_link_focus_fix() { } /** - * Enqueue supplemental block editor styles. + * Enqueues supplemental block editor styles. */ function twentynineteen_editor_customizer_styles() { @@ -326,7 +326,7 @@ function twentynineteen_editor_customizer_styles() { add_action( 'enqueue_block_editor_assets', 'twentynineteen_editor_customizer_styles' ); /** - * Display custom color CSS in customizer and on frontend. + * Displays custom color CSS in customizer and on frontend. */ function twentynineteen_colors_css_wrap() { @@ -386,7 +386,7 @@ function twentynineteen_colors_css_wrap() { require get_template_directory() . '/inc/customizer.php'; /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Nineteen 3.0 */ diff --git a/src/wp-content/themes/twentynineteen/inc/block-patterns.php b/src/wp-content/themes/twentynineteen/inc/block-patterns.php index 63154c6d0a58c..54f1817abab53 100644 --- a/src/wp-content/themes/twentynineteen/inc/block-patterns.php +++ b/src/wp-content/themes/twentynineteen/inc/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { diff --git a/src/wp-content/themes/twentynineteen/inc/color-patterns.php b/src/wp-content/themes/twentynineteen/inc/color-patterns.php index 25e073237c297..6b8b32cfd80c0 100644 --- a/src/wp-content/themes/twentynineteen/inc/color-patterns.php +++ b/src/wp-content/themes/twentynineteen/inc/color-patterns.php @@ -69,7 +69,7 @@ function twentynineteen_custom_colors_css() { $theme_css = ' /* - * Set background for: + * Sets background for: * - featured image :before * - featured image :before * - post thumbnail :before @@ -98,7 +98,7 @@ function twentynineteen_custom_colors_css() { } /* - * Set Color for: + * Sets Color for: * - all links * - main navigation links * - Post navigation links @@ -132,7 +132,7 @@ function twentynineteen_custom_colors_css() { } /* - * Set border color for: + * Sets border color for: * wp block quote * :focus */ @@ -208,7 +208,7 @@ function twentynineteen_custom_colors_css() { $editor_css = ' /* - * Set colors for: + * Sets colors for: * - links * - blockquote * - pullquote (solid color) diff --git a/src/wp-content/themes/twentynineteen/inc/customizer.php b/src/wp-content/themes/twentynineteen/inc/customizer.php index 2012b09a7f10e..753b62c5fa386 100644 --- a/src/wp-content/themes/twentynineteen/inc/customizer.php +++ b/src/wp-content/themes/twentynineteen/inc/customizer.php @@ -8,7 +8,7 @@ */ /** - * Add postMessage support for site title and description for the Theme Customizer. + * Adds postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ diff --git a/src/wp-content/themes/twentynineteen/inc/icon-functions.php b/src/wp-content/themes/twentynineteen/inc/icon-functions.php index 9c9db02492f07..2ac4cffd6bd21 100644 --- a/src/wp-content/themes/twentynineteen/inc/icon-functions.php +++ b/src/wp-content/themes/twentynineteen/inc/icon-functions.php @@ -38,7 +38,7 @@ function twentynineteen_get_social_link_svg( $uri, $size = 24 ) { } /** - * Display SVG icons in social links menu. + * Displays SVG icons in social links menu. * * @param string $item_output The menu item's starting HTML output. * @param WP_Post $item Menu item data object. @@ -61,7 +61,7 @@ function twentynineteen_nav_menu_social_icons( $item_output, $item, $depth, $arg add_filter( 'walker_nav_menu_start_el', 'twentynineteen_nav_menu_social_icons', 10, 4 ); /** - * Add a dropdown icon to top-level menu items. + * Adds a dropdown icon to top-level menu items. * * @param string $item_output The menu item's starting HTML output. * @param WP_Post $item Menu item data object. diff --git a/src/wp-content/themes/twentynineteen/js/priority-menu.js b/src/wp-content/themes/twentynineteen/js/priority-menu.js index 85449b0e241cc..1691b7b352d44 100644 --- a/src/wp-content/themes/twentynineteen/js/priority-menu.js +++ b/src/wp-content/themes/twentynineteen/js/priority-menu.js @@ -91,7 +91,7 @@ } /** - * Set menu container variable. + * Sets menu container variable. */ var navContainer = document.querySelector('.main-navigation'); var breaks = []; diff --git a/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js b/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js index 0d6a427ecbbe4..cf5caa162e9db 100644 --- a/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js +++ b/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js @@ -43,7 +43,7 @@ } /** - * Add class. + * Adds class. * * @param {Object} el * @param {string} cls diff --git a/src/wp-content/themes/twentynineteen/sass/_normalize.scss b/src/wp-content/themes/twentynineteen/sass/_normalize.scss index c5ad67a1af5fd..b0eb6d85146ff 100644 --- a/src/wp-content/themes/twentynineteen/sass/_normalize.scss +++ b/src/wp-content/themes/twentynineteen/sass/_normalize.scss @@ -81,7 +81,7 @@ abbr[title] { } /** - * Add the correct font weight in Chrome, Edge, and Safari. + * Adds the correct font weight in Chrome, Edge, and Safari. */ b, @@ -102,7 +102,7 @@ samp { } /** - * Add the correct font size in all browsers. + * Adds the correct font size in all browsers. */ small { @@ -161,7 +161,7 @@ textarea { } /** - * Show the overflow in IE. + * Shows the overflow in IE. * 1. Show the overflow in Edge. */ @@ -239,7 +239,7 @@ legend { } /** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. + * Adds the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { @@ -306,7 +306,7 @@ textarea { ========================================================================== */ /* - * Add the correct display in Edge, IE 10+, and Firefox. + * Adds the correct display in Edge, IE 10+, and Firefox. */ details { @@ -314,7 +314,7 @@ details { } /* - * Add the correct display in all browsers. + * Adds the correct display in all browsers. */ summary { @@ -325,7 +325,7 @@ summary { ========================================================================== */ /** - * Add the correct display in IE 10+. + * Adds the correct display in IE 10+. */ template { @@ -333,7 +333,7 @@ template { } /** - * Add the correct display in IE 10. + * Adds the correct display in IE 10. */ [hidden] { diff --git a/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss b/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss index b46df6311d1f2..12619807b7de5 100644 --- a/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss +++ b/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss @@ -272,7 +272,7 @@ &:after { background: #000; /** - * Add a transition to the readability overlay, to add a subtle + * Adds a transition to the readability overlay, to add a subtle * but smooth effect when resizing the screen. */ transition: opacity 1200ms ease-in-out; diff --git a/src/wp-content/themes/twentynineteen/style-rtl.css b/src/wp-content/themes/twentynineteen/style-rtl.css index 9f1700c012b9b..e0c3e900d99f3 100644 --- a/src/wp-content/themes/twentynineteen/style-rtl.css +++ b/src/wp-content/themes/twentynineteen/style-rtl.css @@ -1960,7 +1960,7 @@ abbr[title] { } /** - * Add the correct font weight in Chrome, Edge, and Safari. + * Adds the correct font weight in Chrome, Edge, and Safari. */ b, strong { @@ -1981,7 +1981,7 @@ samp { } /** - * Add the correct font size in all browsers. + * Adds the correct font size in all browsers. */ small { font-size: 80%; @@ -2038,7 +2038,7 @@ textarea { } /** - * Show the overflow in IE. + * Shows the overflow in IE. * 1. Show the overflow in Edge. */ button, @@ -2117,7 +2117,7 @@ legend { } /** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. + * Adds the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { vertical-align: baseline; @@ -2182,14 +2182,14 @@ textarea { /* Interactive ========================================================================== */ /* - * Add the correct display in Edge, IE 10+, and Firefox. + * Adds the correct display in Edge, IE 10+, and Firefox. */ details { display: block; } /* - * Add the correct display in all browsers. + * Adds the correct display in all browsers. */ summary { display: list-item; @@ -2198,14 +2198,14 @@ summary { /* Misc ========================================================================== */ /** - * Add the correct display in IE 10+. + * Adds the correct display in IE 10+. */ template { display: none; } /** - * Add the correct display in IE 10. + * Adds the correct display in IE 10. */ [hidden] { display: none; @@ -4136,7 +4136,7 @@ body.page .main-navigation { .site-header.featured-image:after { background: #000; /** - * Add a transition to the readability overlay, to add a subtle + * Adds a transition to the readability overlay, to add a subtle * but smooth effect when resizing the screen. */ transition: opacity 1200ms ease-in-out; diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css index 634a947b3a880..6c6c6fc8e7829 100644 --- a/src/wp-content/themes/twentynineteen/style.css +++ b/src/wp-content/themes/twentynineteen/style.css @@ -1960,7 +1960,7 @@ abbr[title] { } /** - * Add the correct font weight in Chrome, Edge, and Safari. + * Adds the correct font weight in Chrome, Edge, and Safari. */ b, strong { @@ -1981,7 +1981,7 @@ samp { } /** - * Add the correct font size in all browsers. + * Adds the correct font size in all browsers. */ small { font-size: 80%; @@ -2038,7 +2038,7 @@ textarea { } /** - * Show the overflow in IE. + * Shows the overflow in IE. * 1. Show the overflow in Edge. */ button, @@ -2117,7 +2117,7 @@ legend { } /** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. + * Adds the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { vertical-align: baseline; @@ -2182,14 +2182,14 @@ textarea { /* Interactive ========================================================================== */ /* - * Add the correct display in Edge, IE 10+, and Firefox. + * Adds the correct display in Edge, IE 10+, and Firefox. */ details { display: block; } /* - * Add the correct display in all browsers. + * Adds the correct display in all browsers. */ summary { display: list-item; @@ -2198,14 +2198,14 @@ summary { /* Misc ========================================================================== */ /** - * Add the correct display in IE 10+. + * Adds the correct display in IE 10+. */ template { display: none; } /** - * Add the correct display in IE 10. + * Adds the correct display in IE 10. */ [hidden] { display: none; @@ -4142,7 +4142,7 @@ body.page .main-navigation { .site-header.featured-image:after { background: #000; /** - * Add a transition to the readability overlay, to add a subtle + * Adds a transition to the readability overlay, to add a subtle * but smooth effect when resizing the screen. */ transition: opacity 1200ms ease-in-out; diff --git a/src/wp-content/themes/twentyseventeen/assets/js/global.js b/src/wp-content/themes/twentyseventeen/assets/js/global.js index cb9bc36624c02..b908197256135 100644 --- a/src/wp-content/themes/twentyseventeen/assets/js/global.js +++ b/src/wp-content/themes/twentyseventeen/assets/js/global.js @@ -44,7 +44,7 @@ } }); - // Set properties of navigation. + // Sets properties of navigation. function setNavProps() { navigationHeight = $navigation.height(); navigationOuterHeight = $navigation.outerHeight(); @@ -85,7 +85,7 @@ } } - // Set margins of branding in header. + // Sets margins of branding in header. function adjustHeaderHeight() { if ( 'none' === $menuToggle.css( 'display' ) ) { @@ -102,7 +102,7 @@ } } - // Set icon for quotes. + // Sets icon for quotes. function setQuotesIcon() { $( twentyseventeenScreenReaderText.quote ).prependTo( $formatQuote ); } diff --git a/src/wp-content/themes/twentyseventeen/assets/js/navigation.js b/src/wp-content/themes/twentyseventeen/assets/js/navigation.js index 4c0560239c6c2..5b94d4b04d2cc 100644 --- a/src/wp-content/themes/twentyseventeen/assets/js/navigation.js +++ b/src/wp-content/themes/twentyseventeen/assets/js/navigation.js @@ -17,13 +17,13 @@ container.find( '.menu-item-has-children > a, .page_item_has_children > a' ).after( dropdownToggle ); - // Set the active submenu dropdown toggle button initial state. + // Sets the active submenu dropdown toggle button initial state. container.find( '.current-menu-ancestor > button' ) .addClass( 'toggled-on' ) .attr( 'aria-expanded', 'true' ) .find( '.screen-reader-text' ) .text( twentyseventeenScreenReaderText.collapse ); - // Set the active submenu initial state. + // Sets the active submenu initial state. container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' ); container.find( '.dropdown-toggle' ).on( 'click', function( e ) { diff --git a/src/wp-content/themes/twentyseventeen/functions.php b/src/wp-content/themes/twentyseventeen/functions.php index b99176fc49bf8..5ed56001a65a7 100644 --- a/src/wp-content/themes/twentyseventeen/functions.php +++ b/src/wp-content/themes/twentyseventeen/functions.php @@ -53,7 +53,7 @@ function twentyseventeen_setup() { add_image_size( 'twentyseventeen-thumbnail-avatar', 100, 100, true ); - // Set the default content width. + // Sets the default content width. $GLOBALS['content_width'] = 525; // This theme uses wp_nav_menu() in two locations. @@ -65,7 +65,7 @@ function twentyseventeen_setup() { ); /* - * Switch default core markup for search form, comment form, and comments + * Switches default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( @@ -195,7 +195,7 @@ function twentyseventeen_setup() { 'page_for_posts' => '{{blog}}', ), - // Set the front page section theme mods to the IDs of the core-registered pages. + // Sets the front page section theme mods to the IDs of the core-registered pages. 'theme_mods' => array( 'panel_1' => '{{homepage-section}}', 'panel_2' => '{{about}}', @@ -203,7 +203,7 @@ function twentyseventeen_setup() { 'panel_4' => '{{contact}}', ), - // Set up nav menus for each of the two areas registered in the theme. + // Sets up nav menus for each of the two areas registered in the theme. 'nav_menus' => array( // Assign a menu to the "top" location. 'top' => array( @@ -244,7 +244,7 @@ function twentyseventeen_setup() { add_action( 'after_setup_theme', 'twentyseventeen_setup' ); /** - * Set the content width in pixels, based on the theme's design and stylesheet. + * Sets the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * @@ -284,7 +284,7 @@ function twentyseventeen_content_width() { if ( ! function_exists( 'twentyseventeen_fonts_url' ) ) : /** - * Register custom fonts. + * Registers custom fonts. * * @since Twenty Seventeen 1.0 * @since Twenty Seventeen 3.2 Replaced Google URL with self-hosted fonts. @@ -309,7 +309,7 @@ function twentyseventeen_fonts_url() { endif; /** - * Add preconnect for Google Fonts. + * Adds preconnect for Google Fonts. * * @since Twenty Seventeen 1.0 * @deprecated Twenty Seventeen 3.2 Disabled filter because, by default, fonts are self-hosted. @@ -331,7 +331,7 @@ function twentyseventeen_resource_hints( $urls, $relation_type ) { // add_filter( 'wp_resource_hints', 'twentyseventeen_resource_hints', 10, 2 ); /** - * Register widget area. + * Registers widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ @@ -411,7 +411,7 @@ function twentyseventeen_javascript_detection() { add_action( 'wp_head', 'twentyseventeen_javascript_detection', 0 ); /** - * Add a pingback url auto-discovery header for singularly identifiable articles. + * Adds a pingback url auto-discovery header for singularly identifiable articles. */ function twentyseventeen_pingback_header() { if ( is_singular() && pings_open() ) { @@ -421,7 +421,7 @@ function twentyseventeen_pingback_header() { add_action( 'wp_head', 'twentyseventeen_pingback_header' ); /** - * Display custom color CSS. + * Displays custom color CSS. */ function twentyseventeen_colors_css_wrap() { if ( 'custom' !== get_theme_mod( 'colorscheme' ) && ! is_customize_preview() ) { @@ -551,7 +551,7 @@ function twentyseventeen_block_editor_styles() { add_action( 'enqueue_block_editor_assets', 'twentyseventeen_block_editor_styles' ); /** - * Add custom image sizes attribute to enhance responsive image functionality + * Adds custom image sizes attribute to enhance responsive image functionality * for content images. * * @since Twenty Seventeen 1.0 @@ -598,7 +598,7 @@ function twentyseventeen_header_image_tag( $html, $header, $attr ) { add_filter( 'get_header_image_tag', 'twentyseventeen_header_image_tag', 10, 3 ); /** - * Add custom image sizes attribute to enhance responsive image functionality + * Adds custom image sizes attribute to enhance responsive image functionality * for post thumbnails. * * @since Twenty Seventeen 1.0 @@ -622,7 +622,7 @@ function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) add_filter( 'wp_get_attachment_image_attributes', 'twentyseventeen_post_thumbnail_sizes_attr', 10, 3 ); /** - * Use front-page.php when Front page displays is set to a static page. + * Uses front-page.php when Front page displays is set to a static page. * * @since Twenty Seventeen 1.0 * @@ -692,10 +692,10 @@ function wp_get_list_item_separator() { endif; /** - * Show the featured image below the header on single posts and pages, unless the - * page is the front page. + * Shows the featured image below the header on single posts and pages, unless + * the page is the front page. * - * Use the filter `twentyseventeen_should_show_featured_image` in a child theme or + * Uses the filter `twentyseventeen_should_show_featured_image` in a child theme or * plugin to change when the image is shown. This example prevents the image * from showing: * @@ -724,7 +724,7 @@ function twentyseventeen_should_show_featured_image() { } /** - * Implement the Custom Header feature. + * Implements the Custom Header feature. */ require get_parent_theme_file_path( '/inc/custom-header.php' ); @@ -749,7 +749,7 @@ function twentyseventeen_should_show_featured_image() { require get_parent_theme_file_path( '/inc/icon-functions.php' ); /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Seventeen 3.8 */ diff --git a/src/wp-content/themes/twentyseventeen/inc/block-patterns.php b/src/wp-content/themes/twentyseventeen/inc/block-patterns.php index e924ce7e29412..8d12e283f018f 100644 --- a/src/wp-content/themes/twentyseventeen/inc/block-patterns.php +++ b/src/wp-content/themes/twentyseventeen/inc/block-patterns.php @@ -8,7 +8,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -19,7 +19,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { register_block_pattern( @@ -150,11 +150,11 @@ 'content' => ' - +

' . esc_html__( 'Our Services', 'twentyseventeen' ) . '

- +
@@ -163,7 +163,7 @@
- +
@@ -171,7 +171,7 @@
- + ', @@ -187,7 +187,7 @@

' . esc_html__( 'We are proud to serve outstanding clients.', 'twentyseventeen' ) . '

- +
diff --git a/src/wp-content/themes/twentyseventeen/inc/custom-header.php b/src/wp-content/themes/twentyseventeen/inc/custom-header.php index 7f57f9d7e2551..2777bbb4a1349 100644 --- a/src/wp-content/themes/twentyseventeen/inc/custom-header.php +++ b/src/wp-content/themes/twentyseventeen/inc/custom-header.php @@ -10,7 +10,7 @@ */ /** - * Set up the WordPress core custom header feature. + * Sets up the WordPress core custom header feature. * * @uses twentyseventeen_header_style() */ diff --git a/src/wp-content/themes/twentyseventeen/inc/customizer.php b/src/wp-content/themes/twentyseventeen/inc/customizer.php index 516c2543838cb..23018f4a90a91 100644 --- a/src/wp-content/themes/twentyseventeen/inc/customizer.php +++ b/src/wp-content/themes/twentyseventeen/inc/customizer.php @@ -8,7 +8,7 @@ */ /** - * Add postMessage support for site title and description for the Theme Customizer. + * Adds postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ diff --git a/src/wp-content/themes/twentyseventeen/inc/icon-functions.php b/src/wp-content/themes/twentyseventeen/inc/icon-functions.php index 82a1ebedcc2e0..6394142931765 100644 --- a/src/wp-content/themes/twentyseventeen/inc/icon-functions.php +++ b/src/wp-content/themes/twentyseventeen/inc/icon-functions.php @@ -8,7 +8,7 @@ */ /** - * Add SVG definitions to the footer. + * Adds SVG definitions to the footer. */ function twentyseventeen_include_svg_icons() { // Define SVG sprite file. @@ -44,7 +44,7 @@ function twentyseventeen_get_svg( $args = array() ) { return __( 'Please define an SVG icon filename.', 'twentyseventeen' ); } - // Set defaults. + // Sets defaults. $defaults = array( 'icon' => '', 'title' => '', @@ -55,10 +55,10 @@ function twentyseventeen_get_svg( $args = array() ) { // Parse args. $args = wp_parse_args( $args, $defaults ); - // Set aria hidden. + // Sets aria hidden. $aria_hidden = ' aria-hidden="true"'; - // Set ARIA. + // Sets ARIA. $aria_labelledby = ''; /* @@ -96,7 +96,7 @@ function twentyseventeen_get_svg( $args = array() ) { } /* - * Display the icon. + * Displays the icon. * * The whitespace around `` is intentional - it is a work around to a keyboard navigation bug in Safari 10. * @@ -115,7 +115,7 @@ function twentyseventeen_get_svg( $args = array() ) { } /** - * Display SVG icons in social links menu. + * Displays SVG icons in social links menu. * * @param string $item_output The menu item's starting HTML output. * @param WP_Post $item Menu item data object. @@ -141,7 +141,7 @@ function twentyseventeen_nav_menu_social_icons( $item_output, $item, $depth, $ar add_filter( 'walker_nav_menu_start_el', 'twentyseventeen_nav_menu_social_icons', 10, 4 ); /** - * Add dropdown icon if menu item has children. + * Adds dropdown icon if menu item has children. * * @param string $title The menu item's title. * @param WP_Post $item The current menu item. diff --git a/src/wp-content/themes/twentysixteen/functions.php b/src/wp-content/themes/twentysixteen/functions.php index 778ae2559bb45..95d38e081218f 100644 --- a/src/wp-content/themes/twentysixteen/functions.php +++ b/src/wp-content/themes/twentysixteen/functions.php @@ -2,7 +2,7 @@ /** * Twenty Sixteen functions and definitions * - * Set up the theme and provides some helper functions, which are used in the + * Sets up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * @@ -102,7 +102,7 @@ function twentysixteen_setup() { ); /* - * Switch default core markup for search form, comment form, and comments + * Switches default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( @@ -251,7 +251,7 @@ function twentysixteen_content_width() { add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 ); /** - * Add preconnect for Google Fonts. + * Adds preconnect for Google Fonts. * * @since Twenty Sixteen 1.6 * @deprecated Twenty Sixteen 2.9 Disabled filter because, by default, fonts are self-hosted. @@ -320,7 +320,7 @@ function twentysixteen_widgets_init() { if ( ! function_exists( 'twentysixteen_fonts_url' ) ) : /** - * Register fonts for Twenty Sixteen. + * Registers fonts for Twenty Sixteen. * * Create your own twentysixteen_fonts_url() function to override in a child theme. * @@ -446,7 +446,7 @@ function twentysixteen_scripts() { add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' ); /** - * Enqueue styles for the block-based editor. + * Enqueues styles for the block-based editor. * * @since Twenty Sixteen 1.6 */ @@ -530,7 +530,7 @@ function twentysixteen_hex2rgb( $color ) { /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Sixteen 3.4 */ @@ -546,7 +546,7 @@ function twentysixteen_register_block_patterns() { require get_template_directory() . '/inc/customizer.php'; /** - * Add custom image sizes attribute to enhance responsive image functionality + * Adds custom image sizes attribute to enhance responsive image functionality * for content images * * @since Twenty Sixteen 1.0 @@ -580,7 +580,7 @@ function twentysixteen_content_image_sizes_attr( $sizes, $size ) { add_filter( 'wp_calculate_image_sizes', 'twentysixteen_content_image_sizes_attr', 10, 2 ); /** - * Add custom image sizes attribute to enhance responsive image functionality + * Adds custom image sizes attribute to enhance responsive image functionality * for post thumbnails * * @since Twenty Sixteen 1.0 diff --git a/src/wp-content/themes/twentysixteen/inc/block-patterns.php b/src/wp-content/themes/twentysixteen/inc/block-patterns.php index e4fc5ca4cfafa..553ac2e655e2e 100644 --- a/src/wp-content/themes/twentysixteen/inc/block-patterns.php +++ b/src/wp-content/themes/twentysixteen/inc/block-patterns.php @@ -8,7 +8,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -19,7 +19,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { register_block_pattern( diff --git a/src/wp-content/themes/twentysixteen/js/color-scheme-control.js b/src/wp-content/themes/twentysixteen/js/color-scheme-control.js index e65b5bdea603b..bd930e5682aef 100644 --- a/src/wp-content/themes/twentysixteen/js/color-scheme-control.js +++ b/src/wp-content/themes/twentysixteen/js/color-scheme-control.js @@ -1,6 +1,6 @@ /* global colorScheme, Color */ /** - * Add a listener to the Color Scheme control to update other color controls to new values/defaults. + * Adds a listener to the Color Scheme control to update other color controls to new values/defaults. * Also trigger an update of the Color Scheme CSS when a color is changed. */ diff --git a/src/wp-content/themes/twentyten/block-patterns.php b/src/wp-content/themes/twentyten/block-patterns.php index ac418b63c58bf..eae72e2ffa11d 100644 --- a/src/wp-content/themes/twentyten/block-patterns.php +++ b/src/wp-content/themes/twentyten/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { diff --git a/src/wp-content/themes/twentyten/functions.php b/src/wp-content/themes/twentyten/functions.php index 9937fb544459f..b1eaa874fe147 100644 --- a/src/wp-content/themes/twentyten/functions.php +++ b/src/wp-content/themes/twentyten/functions.php @@ -41,7 +41,7 @@ */ /* - * Set the content width based on the theme's design and stylesheet. + * Sets the content width based on the theme's design and stylesheet. * * Used to set the width of images and content. Should be equal to the width the theme * is designed for, generally via the style.css stylesheet. @@ -55,7 +55,7 @@ if ( ! function_exists( 'twentyten_setup' ) ) : /** - * Set up theme defaults and registers support for various WordPress features. + * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating @@ -324,7 +324,7 @@ function twentyten_header_image() { endif; // twentyten_header_image() /** - * Show a home link for our wp_nav_menu() fallback, wp_page_menu(). + * Shows a home link for our wp_nav_menu() fallback, wp_page_menu(). * * To override this in a child theme, remove the filter and optionally add * your own function tied to the wp_page_menu_args filter hook. @@ -342,7 +342,7 @@ function twentyten_page_menu_args( $args ) { add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' ); /** - * Set the post excerpt length to 40 characters. + * Sets the post excerpt length to 40 characters. * * To override this length in a child theme, remove the filter and add your own * function tied to the excerpt_length filter hook. @@ -392,7 +392,7 @@ function twentyten_auto_excerpt_more( $more ) { add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); /** - * Add a pretty "Continue Reading" link to custom post excerpts. + * Adds a pretty "Continue Reading" link to custom post excerpts. * * To override this link in a child theme, remove the filter and add your own * function tied to the get_the_excerpt filter hook. @@ -528,7 +528,7 @@ function twentyten_comment( $comment, $args, $depth ) { endif; /** - * Register widgetized areas, including two sidebars and four widget-ready columns in the footer. + * Registers widgetized areas, including two sidebars and four widget-ready columns in the footer. * * To override twentyten_widgets_init() in a child theme, remove the action hook and add your own * function tied to the init hook. @@ -697,7 +697,7 @@ function twentyten_posted_in() { endif; /** - * Retrieve the IDs for images in a gallery. + * Retrieves the IDs for images in a gallery. * * @uses get_post_galleries() First, if available. Falls back to shortcode parsing, * then as last option uses a get_posts() call. @@ -760,7 +760,7 @@ function twentyten_widget_tag_cloud_args( $args ) { add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' ); /** - * Enqueue scripts and styles for front end. + * Enqueues scripts and styles for front end. * * @since Twenty Ten 2.6 */ @@ -771,7 +771,7 @@ function twentyten_scripts_styles() { add_action( 'wp_enqueue_scripts', 'twentyten_scripts_styles' ); /** - * Enqueue styles for the block-based editor. + * Enqueues styles for the block-based editor. * * @since Twenty Ten 2.6 */ @@ -782,7 +782,7 @@ function twentyten_block_editor_styles() { add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' ); /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Ten 4.3 */ diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php index 63231d2a88ee5..43f6cae161bfc 100644 --- a/src/wp-content/themes/twentythirteen/functions.php +++ b/src/wp-content/themes/twentythirteen/functions.php @@ -25,7 +25,7 @@ */ /* - * Set up the content width value based on the theme's design. + * Sets up the content width value based on the theme's design. * * @see twentythirteen_content_width() for template-specific adjustments. */ @@ -34,7 +34,7 @@ } /** - * Add support for a custom header image. + * Adds support for a custom header image. */ require get_template_directory() . '/inc/custom-header.php'; @@ -46,7 +46,7 @@ } /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Thirteen 4.3 */ @@ -306,7 +306,7 @@ function twentythirteen_fonts_url() { endif; /** - * Enqueue scripts and styles for the front end. + * Enqueues scripts and styles for the front end. * * @since Twenty Thirteen 1.0 */ @@ -356,7 +356,7 @@ function twentythirteen_scripts_styles() { add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); /** - * Add preconnect for Google Fonts. + * Adds preconnect for Google Fonts. * * @since Twenty Thirteen 2.1 * @deprecated Twenty Thirteen 3.8 Disabled filter because, by default, fonts are self-hosted. @@ -382,7 +382,7 @@ function twentythirteen_resource_hints( $urls, $relation_type ) { // add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); /** - * Enqueue styles for the block-based editor. + * Enqueues styles for the block-based editor. * * @since Twenty Thirteen 2.5 */ @@ -396,7 +396,7 @@ function twentythirteen_block_editor_styles() { add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles' ); /** - * Filter the page title. + * Filters the page title. * * Creates a nicely formatted and more specific title element text for output * in head of document, based on current view. @@ -437,7 +437,7 @@ function twentythirteen_wp_title( $title, $sep ) { add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 ); /** - * Register two widget areas. + * Registers two widget areas. * * @since Twenty Thirteen 1.0 */ @@ -484,7 +484,7 @@ function wp_get_list_item_separator() { if ( ! function_exists( 'twentythirteen_paging_nav' ) ) : /** - * Display navigation to next/previous set of posts when applicable. + * Displays navigation to next/previous set of posts when applicable. * * @since Twenty Thirteen 1.0 */ @@ -521,7 +521,7 @@ function twentythirteen_paging_nav() { if ( ! function_exists( 'twentythirteen_post_nav' ) ) : /** - * Display navigation to next/previous post when applicable. + * Displays navigation to next/previous post when applicable. * * @since Twenty Thirteen 1.0 * @@ -789,7 +789,7 @@ function twentythirteen_content_width() { add_action( 'template_redirect', 'twentythirteen_content_width' ); /** - * Add postMessage support for site title and description for the Customizer. + * Adds postMessage support for site title and description for the Customizer. * * @since Twenty Thirteen 1.0 * @@ -848,7 +848,7 @@ function twentythirteen_customize_partial_blogdescription() { } /** - * Enqueue JavaScript postMessage handlers for the Customizer. + * Enqueues JavaScript postMessage handlers for the Customizer. * * Binds JavaScript handlers to make the Customizer preview * reload changes asynchronously. @@ -920,7 +920,7 @@ function wp_body_open() { endif; /** - * Register Custom Block Styles + * Registers Custom Block Styles * * @since Twenty Thirteen 3.4 */ @@ -928,7 +928,7 @@ function wp_body_open() { function twentythirteen_register_block_styles() { /** - * Register block style + * Registers block style */ register_block_style( 'core/button', diff --git a/src/wp-content/themes/twentythirteen/inc/back-compat.php b/src/wp-content/themes/twentythirteen/inc/back-compat.php index 2f30c1c7133e8..97c58059ebaf3 100644 --- a/src/wp-content/themes/twentythirteen/inc/back-compat.php +++ b/src/wp-content/themes/twentythirteen/inc/back-compat.php @@ -26,7 +26,7 @@ function twentythirteen_switch_theme() { add_action( 'after_switch_theme', 'twentythirteen_switch_theme' ); /** - * Add message for unsuccessful theme switch. + * Adds message for unsuccessful theme switch. * * Prints an update nag after an unsuccessful attempt to switch to * Twenty Thirteen on WordPress versions prior to 3.6. diff --git a/src/wp-content/themes/twentythirteen/inc/block-patterns.php b/src/wp-content/themes/twentythirteen/inc/block-patterns.php index d8630149c37de..9e9a715615133 100644 --- a/src/wp-content/themes/twentythirteen/inc/block-patterns.php +++ b/src/wp-content/themes/twentythirteen/inc/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { // Decorative Gallery. diff --git a/src/wp-content/themes/twentythirteen/inc/custom-header.php b/src/wp-content/themes/twentythirteen/inc/custom-header.php index c33910b78f159..8028482913463 100644 --- a/src/wp-content/themes/twentythirteen/inc/custom-header.php +++ b/src/wp-content/themes/twentythirteen/inc/custom-header.php @@ -1,6 +1,6 @@ '220e10', 'default-image' => '%s/images/headers/circle.png', - // Set height and width, with a maximum value for the width. + // Sets height and width, with a maximum value for the width. 'height' => 230, 'width' => 1600, diff --git a/src/wp-content/themes/twentythirteen/js/functions.js b/src/wp-content/themes/twentythirteen/js/functions.js index 8287fc8a59b87..4dbd832ac0e7a 100644 --- a/src/wp-content/themes/twentythirteen/js/functions.js +++ b/src/wp-content/themes/twentythirteen/js/functions.js @@ -75,7 +75,7 @@ } )(); /** - * Add or remove ARIA attributes. + * Adds or remove ARIA attributes. * * Uses jQuery's width() function to determine the size of the window and add * the default ARIA attributes for the menu toggle if it's visible. diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php index 64757a71bdd6d..83c5d6f1be3d7 100644 --- a/src/wp-content/themes/twentytwelve/functions.php +++ b/src/wp-content/themes/twentytwelve/functions.php @@ -24,7 +24,7 @@ * @since Twenty Twelve 1.0 */ -// Set up the content width value based on the theme's design and stylesheet. +// Sets up the content width value based on the theme's design and stylesheet. if ( ! isset( $content_width ) ) { $content_width = 625; } @@ -135,12 +135,12 @@ function twentytwelve_setup() { add_action( 'after_setup_theme', 'twentytwelve_setup' ); /** - * Add support for a custom header image. + * Adds support for a custom header image. */ require get_template_directory() . '/inc/custom-header.php'; /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Twelve 4.4 */ @@ -178,7 +178,7 @@ function twentytwelve_get_font_url() { endif; /** - * Enqueue scripts and styles for front end. + * Enqueues scripts and styles for front end. * * @since Twenty Twelve 1.0 */ @@ -224,7 +224,7 @@ function twentytwelve_scripts_styles() { add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); /** - * Enqueue styles for the block-based editor. + * Enqueues styles for the block-based editor. * * @since Twenty Twelve 2.6 */ @@ -238,7 +238,7 @@ function twentytwelve_block_editor_styles() { add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' ); /** - * Add preconnect for Google Fonts. + * Adds preconnect for Google Fonts. * * @since Twenty Twelve 2.2 * @deprecated Twenty Twelve 3.9 Disabled filter because, by default, fonts are self-hosted. @@ -264,7 +264,7 @@ function twentytwelve_resource_hints( $urls, $relation_type ) { // add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 ); /** - * Filter TinyMCE CSS path to include hosted fonts. + * Filters TinyMCE CSS path to include hosted fonts. * * Adds additional stylesheets to the TinyMCE editor if needed. * @@ -293,7 +293,7 @@ function twentytwelve_mce_css( $mce_css ) { add_filter( 'mce_css', 'twentytwelve_mce_css' ); /** - * Filter the page title. + * Filters the page title. * * Creates a nicely formatted and more specific title element text * for output in head of document, based on current view. @@ -331,7 +331,7 @@ function twentytwelve_wp_title( $title, $sep ) { add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); /** - * Filter the page menu arguments. + * Filters the page menu arguments. * * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. * @@ -346,7 +346,7 @@ function twentytwelve_page_menu_args( $args ) { add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); /** - * Register sidebars. + * Registers sidebars. * * Registers our main widget area and the front page widget areas. * @@ -516,7 +516,7 @@ function twentytwelve_comment( $comment, $args, $depth ) { if ( ! function_exists( 'twentytwelve_entry_meta' ) ) : /** - * Set up post entry meta. + * Sets up post entry meta. * * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. * @@ -639,9 +639,9 @@ function twentytwelve_content_width() { add_action( 'template_redirect', 'twentytwelve_content_width' ); /** - * Register postMessage support. + * Registers postMessage support. * - * Add postMessage support for site title and description for the Customizer. + * Adds postMessage support for site title and description for the Customizer. * * @since Twenty Twelve 1.0 * @@ -700,7 +700,7 @@ function twentytwelve_customize_partial_blogdescription() { } /** - * Enqueue JavaScript postMessage handlers for the Customizer. + * Enqueues JavaScript postMessage handlers for the Customizer. * * Binds JS handlers to make the Customizer preview reload changes asynchronously. * diff --git a/src/wp-content/themes/twentytwelve/inc/block-patterns.php b/src/wp-content/themes/twentytwelve/inc/block-patterns.php index 65cdbd28b604b..b66f09574a318 100644 --- a/src/wp-content/themes/twentytwelve/inc/block-patterns.php +++ b/src/wp-content/themes/twentytwelve/inc/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { diff --git a/src/wp-content/themes/twentytwelve/inc/custom-header.php b/src/wp-content/themes/twentytwelve/inc/custom-header.php index 6a76975c078d1..6cf4f2a7a30a4 100644 --- a/src/wp-content/themes/twentytwelve/inc/custom-header.php +++ b/src/wp-content/themes/twentytwelve/inc/custom-header.php @@ -1,6 +1,6 @@ '515151', 'default-image' => '', - // Set height and width, with a maximum value for the width. + // Sets height and width, with a maximum value for the width. 'height' => 250, 'width' => 960, 'max-width' => 2000, diff --git a/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js b/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js index 2587a4815398f..597c0cf98ee18 100644 --- a/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js +++ b/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js @@ -11,7 +11,7 @@ * @return {Object} - this */ function _twentyTwentyColor( backgroundColor, accentHue ) { - // Set the object properties. + // Sets the object properties. this.backgroundColor = backgroundColor; this.accentHue = accentHue; this.bgColorObj = new Color( backgroundColor ); @@ -49,7 +49,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() { } ), item, /** - * Get a score for this color in contrast to its background color and surrounding text. + * Gets a score for this color in contrast to its background color and surrounding text. * * @since Twenty Twenty 1.0 * @@ -110,7 +110,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() { }; /** - * Get accessible text-color. + * Gets accessible text-color. * * @since Twenty Twenty 1.0 * @@ -121,7 +121,7 @@ _twentyTwentyColor.prototype.getTextColor = function() { }; /** - * Get accessible color for the defined accent-hue and background-color. + * Gets accessible color for the defined accent-hue and background-color. * * @since Twenty Twenty 1.0 * diff --git a/src/wp-content/themes/twentytwenty/assets/js/customize-preview.js b/src/wp-content/themes/twentytwenty/assets/js/customize-preview.js index 36608f724aba8..4a8025a576898 100644 --- a/src/wp-content/themes/twentytwenty/assets/js/customize-preview.js +++ b/src/wp-content/themes/twentytwenty/assets/js/customize-preview.js @@ -151,7 +151,7 @@ } ); /** - * Add styles to elements in the preview pane. + * Adds styles to elements in the preview pane. * * @since Twenty Twenty 1.0 * diff --git a/src/wp-content/themes/twentytwenty/assets/js/index.js b/src/wp-content/themes/twentytwenty/assets/js/index.js index 35efcd6b60654..3659af4655a1d 100644 --- a/src/wp-content/themes/twentytwenty/assets/js/index.js +++ b/src/wp-content/themes/twentytwenty/assets/js/index.js @@ -4,7 +4,7 @@ var twentytwenty = twentytwenty || {}; -// Set a default value for scrolled. +// Sets a default value for scrolled. twentytwenty.scrolled = 0; // polyfill closest @@ -475,8 +475,8 @@ twentytwenty.primaryMenu = { el.classList.remove( 'focus' ); } }); - - // Set focus on current `a` element's parent `li`. + + // Sets focus on current `a` element's parent `li`. self.parentElement.classList.add( 'focus' ); // If current element is inside sub-menu find main parent li and add focus. if ( self.closest( '.menu-item-has-children' ) ) { diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php index c85a53b754d2a..a4ca3cf34864b 100644 --- a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php +++ b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php @@ -16,7 +16,7 @@ class TwentyTwenty_Customize { /** - * Register customizer options. + * Registers customizer options. * * @since Twenty Twenty 1.0 * diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php index a5bbe31f53699..8d4f8a742c330 100644 --- a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php +++ b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php @@ -18,7 +18,7 @@ class TwentyTwenty_Non_Latin_Languages { /** - * Get custom CSS. + * Gets custom CSS. * * Return CSS for non-latin language, if available, or null * diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php index 6f28dd7dbc728..31e5468c262b9 100644 --- a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php +++ b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php @@ -10,14 +10,14 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { /** * SVG ICONS CLASS - * Retrieve the SVG code for the specified icon. Based on a solution in Twenty Nineteen. + * Retrieves the SVG code for the specified icon. Based on a solution in Twenty Nineteen. * * @since Twenty Twenty 1.0 */ class TwentyTwenty_SVG_Icons { /** * GET SVG CODE - * Get the SVG code for the specified icon + * Gets the SVG code for the specified icon * * @since Twenty Twenty 1.0 * diff --git a/src/wp-content/themes/twentytwenty/functions.php b/src/wp-content/themes/twentytwenty/functions.php index a3ca940c4dd9e..5732c252444e9 100644 --- a/src/wp-content/themes/twentytwenty/functions.php +++ b/src/wp-content/themes/twentytwenty/functions.php @@ -46,7 +46,7 @@ function twentytwenty_theme_support() { ) ); - // Set content-width. + // Sets content-width. global $content_width; if ( ! isset( $content_width ) ) { $content_width = 580; @@ -59,7 +59,7 @@ function twentytwenty_theme_support() { */ add_theme_support( 'post-thumbnails' ); - // Set post thumbnail size. + // Sets post thumbnail size. set_post_thumbnail_size( 1200, 9999 ); // Add custom image size used in Cover Template. @@ -94,7 +94,7 @@ function twentytwenty_theme_support() { add_theme_support( 'title-tag' ); /* - * Switch default core markup for search form, comment form, and comments + * Switches default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( @@ -176,7 +176,7 @@ function twentytwenty_theme_support() { require get_template_directory() . '/inc/custom-css.php'; /** - * Register block patterns and pattern categories. + * Registers block patterns and pattern categories. * * @since Twenty Twenty 2.8 */ @@ -187,7 +187,7 @@ function twentytwenty_register_block_patterns() { add_action( 'init', 'twentytwenty_register_block_patterns' ); /** - * Register and Enqueue Styles. + * Registers and Enqueue Styles. * * @since Twenty Twenty 1.0 * @since Twenty Twenty 2.6 Enqueue the CSS file for the variable font. @@ -215,7 +215,7 @@ function twentytwenty_register_styles() { add_action( 'wp_enqueue_scripts', 'twentytwenty_register_styles' ); /** - * Register and Enqueue Scripts. + * Registers and Enqueue Scripts. * * @since Twenty Twenty 1.0 */ @@ -260,7 +260,7 @@ function twentytwenty_skip_link_focus_fix() { } /** - * Enqueue non-latin language styles. + * Enqueues non-latin language styles. * * @since Twenty Twenty 1.0 * @@ -277,7 +277,7 @@ function twentytwenty_non_latin_languages() { add_action( 'wp_enqueue_scripts', 'twentytwenty_non_latin_languages' ); /** - * Register navigation menus uses wp_nav_menu in five places. + * Registers navigation menus uses wp_nav_menu in five places. * * @since Twenty Twenty 1.0 */ @@ -297,7 +297,7 @@ function twentytwenty_menus() { add_action( 'init', 'twentytwenty_menus' ); /** - * Get the information about the logo. + * Gets the information about the logo. * * @since Twenty Twenty 1.0 * @@ -385,7 +385,7 @@ function twentytwenty_skip_link() { add_action( 'wp_body_open', 'twentytwenty_skip_link', 5 ); /** - * Register widget areas. + * Registers widget areas. * * @since Twenty Twenty 1.0 * @@ -429,7 +429,7 @@ function twentytwenty_sidebar_registration() { add_action( 'widgets_init', 'twentytwenty_sidebar_registration' ); /** - * Enqueue supplemental block editor styles. + * Enqueues supplemental block editor styles. * * @since Twenty Twenty 1.0 * @since Twenty Twenty 2.4 Removed a script related to the obsolete Squared style of Button blocks. @@ -466,7 +466,7 @@ function twentytwenty_block_editor_styles() { } /** - * Enqueue classic editor styles. + * Enqueues classic editor styles. * * @since Twenty Twenty 1.0 * @since Twenty Twenty 2.6 Enqueue the CSS file for the variable font. @@ -540,7 +540,7 @@ function twentytwenty_add_classic_editor_non_latin_styles( $mce_init ) { /** * Block Editor Settings. - * Add custom colors and font sizes to the block editor. + * Adds custom colors and font sizes to the block editor. * * @since Twenty Twenty 1.0 */ @@ -665,7 +665,7 @@ function twentytwenty_customize_controls_enqueue_scripts() { add_action( 'customize_controls_enqueue_scripts', 'twentytwenty_customize_controls_enqueue_scripts' ); /** - * Enqueue scripts for the customizer preview. + * Enqueues scripts for the customizer preview. * * @since Twenty Twenty 1.0 * @@ -691,7 +691,7 @@ function twentytwenty_customize_preview_init() { add_action( 'customize_preview_init', 'twentytwenty_customize_preview_init' ); /** - * Get accessible color for an area. + * Gets accessible color for an area. * * @since Twenty Twenty 1.0 * @@ -749,7 +749,7 @@ function twentytwenty_get_customizer_color_vars() { } /** - * Get an array of elements. + * Gets an array of elements. * * @since Twenty Twenty 1.0 * diff --git a/src/wp-content/themes/twentytwenty/inc/block-patterns.php b/src/wp-content/themes/twentytwenty/inc/block-patterns.php index 7fbf339a04505..717ef612ceca4 100644 --- a/src/wp-content/themes/twentytwenty/inc/block-patterns.php +++ b/src/wp-content/themes/twentytwenty/inc/block-patterns.php @@ -11,7 +11,7 @@ */ /** - * Register Block Pattern Category. + * Registers Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { @@ -22,7 +22,7 @@ } /** - * Register Block Patterns. + * Registers Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { diff --git a/src/wp-content/themes/twentytwenty/inc/custom-css.php b/src/wp-content/themes/twentytwenty/inc/custom-css.php index afc1449b6024b..8cf9c8d6530a6 100644 --- a/src/wp-content/themes/twentytwenty/inc/custom-css.php +++ b/src/wp-content/themes/twentytwenty/inc/custom-css.php @@ -48,7 +48,7 @@ function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $su if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) { /** - * Get CSS Built from Customizer Options. + * Gets CSS Built from Customizer Options. * Build CSS reflecting colors, fonts and other options set in the Customizer, and return them for output. * * @since Twenty Twenty 1.0 diff --git a/src/wp-content/themes/twentytwenty/inc/starter-content.php b/src/wp-content/themes/twentytwenty/inc/starter-content.php index 52b36d4c9f89b..9bfa0080fb0af 100644 --- a/src/wp-content/themes/twentytwenty/inc/starter-content.php +++ b/src/wp-content/themes/twentytwenty/inc/starter-content.php @@ -170,7 +170,7 @@ function twentytwenty_get_starter_content() { 'page_for_posts' => '{{blog}}', ), - // Set up nav menus for each of the two areas registered in the theme. + // Sets up nav menus for each of the two areas registered in the theme. 'nav_menus' => array( // Assign a menu to the "primary" location. 'primary' => array( diff --git a/src/wp-content/themes/twentytwenty/inc/svg-icons.php b/src/wp-content/themes/twentytwenty/inc/svg-icons.php index 116bddc6556cb..3f331368a0bb3 100644 --- a/src/wp-content/themes/twentytwenty/inc/svg-icons.php +++ b/src/wp-content/themes/twentytwenty/inc/svg-icons.php @@ -26,7 +26,7 @@ function twentytwenty_the_theme_svg( $svg_name, $group = 'ui', $color = '' ) { if ( ! function_exists( 'twentytwenty_get_theme_svg' ) ) { /** - * Get information about the SVG icon. + * Gets information about the SVG icon. * * @since Twenty Twenty 1.0 * diff --git a/src/wp-content/themes/twentytwenty/inc/template-tags.php b/src/wp-content/themes/twentytwenty/inc/template-tags.php index f2b63a4543def..bb4ee00d27b5b 100644 --- a/src/wp-content/themes/twentytwenty/inc/template-tags.php +++ b/src/wp-content/themes/twentytwenty/inc/template-tags.php @@ -169,7 +169,7 @@ function twentytwenty_is_comment_by_post_author( $comment = null ) { /** * Filters comment reply link to not JS scroll. * - * Filter the comment reply link to add a class indicating it should not use JS slow-scroll, as it + * Filters the comment reply link to add a class indicating it should not use JS slow-scroll, as it * makes it scroll to the wrong position on the page. * * @since Twenty Twenty 1.0 @@ -282,7 +282,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) /** * Filters post meta info visibility. * - * Use this filter to hide post meta information like Author, Post date, Comments, Is sticky status. + * Uses this filter to hide post meta information like Author, Post date, Comments, Is sticky status. * * @since Twenty Twenty 1.0 * @@ -310,7 +310,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) /** * Filters post tags visibility. * - * Use this filter to hide post tags. + * Uses this filter to hide post tags. * * @since Twenty Twenty 1.0 * @@ -538,7 +538,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) /** * Filters classes of wp_list_pages items to match menu items. * - * Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify. + * Filters the class applied to wp_list_pages() items with children to match the menu class, to simplify. * styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set. * * @since Twenty Twenty 1.0 diff --git a/src/wp-content/themes/twentytwentyfour/functions.php b/src/wp-content/themes/twentytwentyfour/functions.php index 8536cb8423163..21ec8563a4a4f 100644 --- a/src/wp-content/themes/twentytwentyfour/functions.php +++ b/src/wp-content/themes/twentytwentyfour/functions.php @@ -9,12 +9,12 @@ */ /** - * Register block styles. + * Registers block styles. */ if ( ! function_exists( 'twentytwentyfour_block_styles' ) ) : /** - * Register custom block styles + * Registers custom block styles * * @since Twenty Twenty-Four 1.0 * @return void @@ -147,12 +147,12 @@ function twentytwentyfour_block_styles() { add_action( 'init', 'twentytwentyfour_block_styles' ); /** - * Enqueue block stylesheets. + * Enqueues block stylesheets. */ if ( ! function_exists( 'twentytwentyfour_block_stylesheets' ) ) : /** - * Enqueue custom block stylesheets + * Enqueues custom block stylesheets * * @since Twenty Twenty-Four 1.0 * @return void @@ -181,12 +181,12 @@ function twentytwentyfour_block_stylesheets() { add_action( 'init', 'twentytwentyfour_block_stylesheets' ); /** - * Register pattern categories. + * Registers pattern categories. */ if ( ! function_exists( 'twentytwentyfour_pattern_categories' ) ) : /** - * Register pattern categories + * Registers pattern categories. * * @since Twenty Twenty-Four 1.0 * @return void diff --git a/src/wp-content/themes/twentytwentyone/assets/css/ie.css b/src/wp-content/themes/twentytwentyone/assets/css/ie.css index 24c2e39ac057a..a7bd9d8678987 100644 --- a/src/wp-content/themes/twentytwentyone/assets/css/ie.css +++ b/src/wp-content/themes/twentytwentyone/assets/css/ie.css @@ -232,7 +232,7 @@ abbr[title] { } /** - * Add the correct font weight in Chrome, Edge, and Safari. + * Adds the correct font weight in Chrome, Edge, and Safari. */ b, strong { @@ -251,7 +251,7 @@ samp { } /** - * Add the correct font size in all browsers. + * Adds the correct font size in all browsers. */ small { font-size: 80%; @@ -306,7 +306,7 @@ textarea { } /** - * Show the overflow in IE. + * Shows the overflow in IE. * 1. Show the overflow in Edge. */ button, @@ -377,7 +377,7 @@ legend { } /** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. + * Adds the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { vertical-align: baseline; @@ -437,14 +437,14 @@ textarea { ========================================================================== */ /* - * Add the correct display in Edge, IE 10+, and Firefox. + * Adds the correct display in Edge, IE 10+, and Firefox. */ details { display: block; } /* - * Add the correct display in all browsers. + * Adds the correct display in all browsers. */ summary { display: list-item; @@ -454,11 +454,11 @@ summary { ========================================================================== */ /** - * Add the correct display in IE 10+. + * Adds the correct display in IE 10+. */ /** - * Add the correct display in IE 10. + * Adds the correct display in IE 10. */ template, [hidden] { @@ -917,15 +917,15 @@ template, } /** - * Set the default maximum responsive content-width + * Sets the default maximum responsive content-width */ /** - * Set the wide maximum responsive content-width + * Sets the wide maximum responsive content-width */ /** - * Set the full maximum responsive content-width + * Sets the full maximum responsive content-width */ /* diff --git a/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js b/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js index 6678c3d9d9040..bff50e5fa7413 100644 --- a/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js +++ b/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js @@ -1,5 +1,5 @@ /** - * Get luminance from a HEX color. + * Gets luminance from a HEX color. * * @since Twenty Twenty-One 1.0 * @@ -13,7 +13,7 @@ function twentytwentyoneGetHexLum( hex ) { // jshint ignore:line } /** - * Get RGB from HEX. + * Gets RGB from HEX. * * @since Twenty Twenty-One 1.0 * diff --git a/src/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js b/src/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js index 088ecad4467e7..92b35c9d1da5c 100644 --- a/src/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js +++ b/src/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js @@ -19,7 +19,7 @@ function twentytwentyoneDarkModeEditorInit( attempt ) { var container = document.querySelector( '.block-editor__typewriter' ), maxAttempts = 8; - // Set the initial attempt if it's undefined. + // Sets the initial attempt if it's undefined. attempt = attempt || 0; if ( twentytwentyoneIsDarkMode() ) { diff --git a/src/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js b/src/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js index 2beed6ef25bd6..1173beaac0b7a 100644 --- a/src/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js +++ b/src/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js @@ -5,7 +5,7 @@ */ /** - * Add max-width & max-height to