Make WordPress Core

Changeset 60506


Ignore:
Timestamp:
07/24/2025 02:24:09 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Twenty Eleven: 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/twentyeleven
Files:
4 edited

Legend:

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

    r59832 r60506  
    299299
    300300/**
    301  * Enqueue scripts and styles for front end.
     301 * Enqueues scripts and styles for front end.
    302302 *
    303303 * @since Twenty Eleven 2.9
     
    310310
    311311/**
    312  * Enqueue styles for the block-based editor.
     312 * Enqueues styles for the block-based editor.
    313313 *
    314314 * @since Twenty Eleven 2.9
     
    474474
    475475/**
    476  * Set the post excerpt length to 40 words.
     476 * Sets the post excerpt length to 40 words.
    477477 *
    478478 * To override this length in a child theme, remove
     
    525525
    526526/**
    527  * Add a pretty "Continue Reading" link to custom post excerpts.
     527 * Adds a pretty "Continue Reading" link to custom post excerpts.
    528528 *
    529529 * To override this link in a child theme, remove the filter and add your own
     
    544544
    545545/**
    546  * Show a home link for the wp_nav_menu() fallback, wp_page_menu().
     546 * Shows a home link for the wp_nav_menu() fallback, wp_page_menu().
    547547 *
    548548 * @since Twenty Eleven 1.0
     
    560560
    561561/**
    562  * Register sidebars and widgetized areas.
     562 * Registers sidebars and widgetized areas.
    563563 *
    564564 * Also register the default Ephemera widget.
     
    633633if ( ! function_exists( 'twentyeleven_content_nav' ) ) :
    634634    /**
    635      * Display navigation to next/previous pages when applicable.
     635     * Displays navigation to next/previous pages when applicable.
    636636     *
    637637     * @since Twenty Eleven 1.0
     
    852852
    853853/**
    854  * Add two classes to the array of body classes.
     854 * Adds two classes to the array of body classes.
    855855 *
    856856 * The first is if the site has only had one author with published posts.
     
    877877
    878878/**
    879  * Retrieve the IDs for images in a gallery.
     879 * Retrieves the IDs for images in a gallery.
    880880 *
    881881 * @uses get_post_galleries() First, if available. Falls back to shortcode parsing,
  • trunk/src/wp-content/themes/twentyeleven/inc/block-patterns.php

    r60244 r60506  
    1212
    1313/**
    14  * Register Block Pattern Category.
     14 * Registers Block Pattern Category.
    1515 */
    1616if ( function_exists( 'register_block_pattern_category' ) ) {
     
    2323
    2424/**
    25  * Register Block Patterns.
     25 * Registers Block Patterns.
    2626 */
    2727if ( function_exists( 'register_block_pattern' ) ) {
  • trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php

    r60159 r60506  
    2525
    2626/**
    27  * Register the form setting for our twentyeleven_options array.
     27 * Registers the form setting for our twentyeleven_options array.
    2828 *
    2929 * This function is attached to the admin_init action hook.
     
    8585
    8686/**
    87  * Add a theme options page to the admin menu, including some help documentation.
     87 * Adds a theme options page to the admin menu, including some help documentation.
    8888 *
    8989 * This function is attached to the admin_menu action hook.
     
    410410
    411411/**
    412  * Enqueue the styles for the current color scheme.
     412 * Enqueues the styles for the current color scheme.
    413413 *
    414414 * @since Twenty Eleven 1.0
     
    434434
    435435/**
    436  * Add a style block to the theme for the current link color.
     436 * Adds a style block to the theme for the current link color.
    437437 *
    438438 * This function is attached to the wp_head action hook.
     
    483483
    484484/**
    485  * Add Twenty Eleven layout classes to the array of body classes.
     485 * Adds Twenty Eleven layout classes to the array of body classes.
    486486 *
    487487 * @since Twenty Eleven 1.0
  • trunk/src/wp-content/themes/twentyeleven/inc/widgets.php

    r59200 r60506  
    182182
    183183    /**
    184      * Set up the widget form.
     184     * Sets up the widget form.
    185185     *
    186186     * Displays the form for this widget on the Widgets page of the WP Admin area.
Note: See TracChangeset for help on using the changeset viewer.