Make WordPress Core


Ignore:
Timestamp:
08/01/2025 11:27:03 AM (9 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.