Make WordPress Core

Changeset 60533


Ignore:
Timestamp:
08/01/2025 11:27:03 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Twenty Seventeen: Use third-person singular verbs for function descriptions.

Reference: PHP Documentation Standards: Documenting Tips.

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r60494 r60533  
    245245
    246246/**
    247  * Set the content width in pixels, based on the theme's design and stylesheet.
     247 * Sets the content width in pixels, based on the theme's design and stylesheet.
    248248 *
    249249 * Priority 0 to make it available to lower priority callbacks.
     
    285285if ( ! function_exists( 'twentyseventeen_fonts_url' ) ) :
    286286    /**
    287      * Register custom fonts.
     287     * Registers custom fonts.
    288288     *
    289289     * @since Twenty Seventeen 1.0
     
    310310
    311311/**
    312  * Add preconnect for Google Fonts.
     312 * Adds preconnect for Google Fonts.
    313313 *
    314314 * @since Twenty Seventeen 1.0
     
    332332
    333333/**
    334  * Register widget area.
     334 * Registers widget area.
    335335 *
    336336 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
     
    412412
    413413/**
    414  * Add a pingback url auto-discovery header for singularly identifiable articles.
     414 * Adds a pingback url auto-discovery header for singularly identifiable articles.
    415415 */
    416416function twentyseventeen_pingback_header() {
     
    422422
    423423/**
    424  * Display custom color CSS.
     424 * Displays custom color CSS.
    425425 */
    426426function twentyseventeen_colors_css_wrap() {
     
    552552
    553553/**
    554  * Add custom image sizes attribute to enhance responsive image functionality
     554 * Adds custom image sizes attribute to enhance responsive image functionality
    555555 * for content images.
    556556 *
     
    599599
    600600/**
    601  * Add custom image sizes attribute to enhance responsive image functionality
     601 * Adds custom image sizes attribute to enhance responsive image functionality
    602602 * for post thumbnails.
    603603 *
     
    623623
    624624/**
    625  * Use front-page.php when Front page displays is set to a static page.
     625 * Uses front-page.php when Front page displays is set to a static page.
    626626 *
    627627 * @since Twenty Seventeen 1.0
     
    693693
    694694/**
    695  * Show the featured image below the header on single posts and pages, unless the
    696  * page is the front page.
    697  *
    698  * Use the filter `twentyseventeen_should_show_featured_image` in a child theme or
     695 * Shows the featured image below the header on single posts and pages, unless
     696 * the page is the front page.
     697 *
     698 * Uses the filter `twentyseventeen_should_show_featured_image` in a child theme or
    699699 * plugin to change when the image is shown. This example prevents the image
    700700 * from showing:
     
    750750
    751751/**
    752  * Register block patterns and pattern categories.
     752 * Registers block patterns and pattern categories.
    753753 *
    754754 * @since Twenty Seventeen 3.8
  • trunk/src/wp-content/themes/twentyseventeen/inc/back-compat.php

    r51155 r60533  
    1313
    1414/**
    15  * Prevent switching to Twenty Seventeen on old versions of WordPress.
     15 * Prevents switching to Twenty Seventeen on old versions of WordPress.
    1616 *
    1717 * Switches to the default theme.
  • trunk/src/wp-content/themes/twentyseventeen/inc/color-patterns.php

    r48782 r60533  
    99
    1010/**
    11  * Generate the CSS for the current custom color scheme.
     11 * Generates the CSS for the current custom color scheme.
    1212 */
    1313function twentyseventeen_custom_colors_css() {
  • trunk/src/wp-content/themes/twentyseventeen/inc/custom-header.php

    r59832 r60533  
    1111
    1212/**
    13  * Set up the WordPress core custom header feature.
     13 * Sets up the WordPress core custom header feature.
    1414 *
    1515 * @uses twentyseventeen_header_style()
     
    119119
    120120/**
    121  * Customize video play/pause button in the custom header.
     121 * Customizes video play/pause button in the custom header.
    122122 *
    123123 * @param array $settings Video settings.
  • trunk/src/wp-content/themes/twentyseventeen/inc/customizer.php

    r60478 r60533  
    99
    1010/**
    11  * Add postMessage support for site title and description for the Theme Customizer.
     11 * Adds postMessage support for site title and description for the Theme Customizer.
    1212 *
    1313 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
     
    163163
    164164/**
    165  * Sanitize the page layout options.
     165 * Sanitizes the page layout options.
    166166 *
    167167 * @param string $input Page layout.
     
    181181
    182182/**
    183  * Sanitize the colorscheme.
     183 * Sanitizes the colorscheme.
    184184 *
    185185 * @param string $input Color scheme.
     
    196196
    197197/**
    198  * Render the site title for the selective refresh partial.
     198 * Renders the site title for the selective refresh partial.
    199199 *
    200200 * @since Twenty Seventeen 1.0
     
    209209
    210210/**
    211  * Render the site tagline for the selective refresh partial.
     211 * Renders the site tagline for the selective refresh partial.
    212212 *
    213213 * @since Twenty Seventeen 1.0
     
    222222
    223223/**
    224  * Return whether we're previewing the front page and it's a static page.
     224 * Returns whether we're previewing the front page and it's a static page.
    225225 *
    226226 * This function is an alias for twentyseventeen_is_frontpage().
     
    236236
    237237/**
    238  * Return whether we're on a view that supports a one or two column layout.
     238 * Returns whether we're on a view that supports a one or two column layout.
    239239 */
    240240function twentyseventeen_is_view_with_layout_option() {
     
    244244
    245245/**
    246  * Bind JS handlers to instantly live-preview changes.
     246 * Binds JS handlers to instantly live-preview changes.
    247247 */
    248248function twentyseventeen_customize_preview_js() {
     
    252252
    253253/**
    254  * Load dynamic logic for the customizer controls area.
     254 * Loads dynamic logic for the customizer controls area.
    255255 */
    256256function twentyseventeen_panels_js() {
  • trunk/src/wp-content/themes/twentyseventeen/inc/icon-functions.php

    r57275 r60533  
    99
    1010/**
    11  * Add SVG definitions to the footer.
     11 * Adds SVG definitions to the footer.
    1212 */
    1313function twentyseventeen_include_svg_icons() {
     
    2323
    2424/**
    25  * Return SVG markup.
     25 * Returns SVG markup.
    2626 *
    2727 * @param array $args {
     
    116116
    117117/**
    118  * Display SVG icons in social links menu.
     118 * Displays SVG icons in social links menu.
    119119 *
    120120 * @param string   $item_output The menu item's starting HTML output.
     
    142142
    143143/**
    144  * Add dropdown icon if menu item has children.
     144 * Adds dropdown icon if menu item has children.
    145145 *
    146146 * @param string   $title The menu item's title.
Note: See TracChangeset for help on using the changeset viewer.