Make WordPress Core

Changeset 60521


Ignore:
Timestamp:
07/29/2025 12:56:16 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Twenty Fifteen: 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/twentyfifteen
Files:
7 edited

Legend:

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

    r60159 r60521  
    33 * Twenty Fifteen functions and definitions
    44 *
    5  * Set up the theme and provides some helper functions, which are used in the
     5 * Sets up the theme and provides some helper functions, which are used in the
    66 * theme as custom template tags. Others are attached to action and filter
    77 * hooks in WordPress to change core functionality.
     
    339339
    340340/**
    341  * Register widget area.
     341 * Registers widget area.
    342342 *
    343343 * @since Twenty Fifteen 1.0
     
    362362if ( ! function_exists( 'twentyfifteen_fonts_url' ) ) :
    363363    /**
    364      * Register fonts for Twenty Fifteen.
     364     * Registers fonts for Twenty Fifteen.
    365365     *
    366366     * @since Twenty Fifteen 1.0
     
    418418
    419419/**
    420  * Enqueue scripts and styles.
     420 * Enqueues scripts and styles.
    421421 *
    422422 * @since Twenty Fifteen 1.0
     
    479479
    480480/**
    481  * Enqueue styles for the block-based editor.
     481 * Enqueues styles for the block-based editor.
    482482 *
    483483 * @since Twenty Fifteen 2.1
     
    494494
    495495/**
    496  * Add preconnect for Google Fonts.
     496 * Adds preconnect for Google Fonts.
    497497 *
    498498 * @since Twenty Fifteen 1.7
     
    520520
    521521/**
    522  * Add featured image as background image to post navigation elements.
     522 * Adds featured image as background image to post navigation elements.
    523523 *
    524524 * @since Twenty Fifteen 1.0
     
    562562
    563563/**
    564  * Display descriptions in main navigation.
     564 * Displays descriptions in main navigation.
    565565 *
    566566 * @since Twenty Fifteen 1.0
     
    582582
    583583/**
    584  * Add a `screen-reader-text` class to the search form's submit button.
     584 * Adds a `screen-reader-text` class to the search form's submit button.
    585585 *
    586586 * @since Twenty Fifteen 1.0
     
    658658
    659659/**
    660  * Register block patterns and pattern categories.
     660 * Registers block patterns and pattern categories.
    661661 *
    662662 * @since Twenty Fifteen 3.9
  • trunk/src/wp-content/themes/twentyfifteen/inc/back-compat.php

    r51155 r60521  
    1313
    1414/**
    15  * Prevent switching to Twenty Fifteen on old versions of WordPress.
     15 * Prevents switching to Twenty Fifteen on old versions of WordPress.
    1616 *
    1717 * Switches to the default theme.
     
    2727
    2828/**
    29  * Add message for unsuccessful theme switch.
     29 * Adds message for unsuccessful theme switch.
    3030 *
    3131 * Prints an update nag after an unsuccessful attempt to switch to
     
    4646
    4747/**
    48  * Prevent the Customizer from being loaded on WordPress versions prior to 4.1.
     48 * Prevents the Customizer from being loaded on WordPress versions prior to 4.1.
    4949 *
    5050 * @since Twenty Fifteen 1.0
     
    6666
    6767/**
    68  * Prevent the Theme Preview from being loaded on WordPress versions prior to 4.1.
     68 * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.1.
    6969 *
    7070 * @since Twenty Fifteen 1.0
  • trunk/src/wp-content/themes/twentyfifteen/inc/custom-header.php

    r59832 r60521  
    99
    1010/**
    11  * Set up the WordPress core custom header feature.
     11 * Sets up the WordPress core custom header feature.
    1212 *
    1313 * @uses twentyfifteen_header_style()
     
    4848
    4949/**
    50  * Convert HEX to RGB.
     50 * Converts HEX to RGB.
    5151 *
    5252 * @since Twenty Fifteen 1.0
  • trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php

    r56526 r60521  
    99
    1010/**
    11  * Add postMessage support for site title and description for the Customizer.
     11 * Adds postMessage support for site title and description for the Customizer.
    1212 *
    1313 * @since Twenty Fifteen 1.0
     
    114114
    115115/**
    116  * Render the site title for the selective refresh partial.
     116 * Renders the site title for the selective refresh partial.
    117117 *
    118118 * @since Twenty Fifteen 1.5
     
    127127
    128128/**
    129  * Render the site tagline for the selective refresh partial.
     129 * Renders the site tagline for the selective refresh partial.
    130130 *
    131131 * @since Twenty Fifteen 1.5
     
    140140
    141141/**
    142  * Register color schemes for Twenty Fifteen.
     142 * Registers color schemes for Twenty Fifteen.
    143143 *
    144144 * Can be filtered with {@see 'twentyfifteen_color_schemes'}.
     
    253253if ( ! function_exists( 'twentyfifteen_get_color_scheme' ) ) :
    254254    /**
    255      * Get the current Twenty Fifteen color scheme.
     255     * Gets the current Twenty Fifteen color scheme.
    256256     *
    257257     * @since Twenty Fifteen 1.0
     
    771771
    772772/**
    773  * Output an Underscore template for generating CSS for the color scheme.
     773 * Outputs an Underscore template for generating CSS for the color scheme.
    774774 *
    775775 * The template generates the css dynamically for instant display in the Customizer
  • trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php

    r59110 r60521  
    1212if ( ! function_exists( 'twentyfifteen_comment_nav' ) ) :
    1313    /**
    14      * Display navigation to next/previous comments when applicable.
     14     * Displays navigation to next/previous comments when applicable.
    1515     *
    1616     * @since Twenty Fifteen 1.0
     
    151151
    152152/**
    153  * Determine whether blog/site has more than one category.
     153 * Determines whether blog/site has more than one category.
    154154 *
    155155 * @since Twenty Fifteen 1.0
     
    187187
    188188/**
    189  * Flush out the transients used in {@see twentyfifteen_categorized_blog()}.
     189 * Flushes out the transients used in {@see twentyfifteen_categorized_blog()}.
    190190 *
    191191 * @since Twenty Fifteen 1.0
     
    200200if ( ! function_exists( 'twentyfifteen_post_thumbnail' ) ) :
    201201    /**
    202      * Display an optional post thumbnail.
     202     * Displays an optional post thumbnail.
    203203     *
    204204     * Wraps the post thumbnail in an anchor element on index views, or a div
     
    234234if ( ! function_exists( 'twentyfifteen_get_link_url' ) ) :
    235235    /**
    236      * Return the post URL.
     236     * Returns the post URL.
    237237     *
    238238     * Falls back to the post permalink if no URL is found in the post.
     
    289289if ( ! function_exists( 'wp_body_open' ) ) :
    290290    /**
    291      * Fire the wp_body_open action.
     291     * Fires the wp_body_open action.
    292292     *
    293293     * Added for backward compatibility to support pre-5.2.0 WordPress versions.
  • trunk/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js

    r30893 r60521  
    11/* global colorScheme, Color */
    22/**
    3  * Add a listener to the Color Scheme control to update other color controls to new values/defaults.
    4  * Also trigger an update of the Color Scheme CSS when a color is changed.
     3 * Adds a listener to the Color Scheme control to update other color controls to new values/defaults.
     4 * Also triggers an update of the Color Scheme CSS when a color is changed.
    55 */
    66
  • trunk/src/wp-content/themes/twentyfifteen/js/functions.js

    r59916 r60521  
    9393
    9494    /**
    95      * Add or remove ARIA attributes.
     95     * Adds or removes ARIA attributes.
    9696     *
    9797     * Uses jQuery's width() function to determine the size of the window and add
Note: See TracChangeset for help on using the changeset viewer.