Make WordPress Core


Ignore:
Timestamp:
07/27/2025 01:03:38 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Twenty Thirteen: 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/twentythirteen/functions.php

    r60159 r60515  
    4747
    4848/**
    49  * Register block patterns and pattern categories.
     49 * Registers block patterns and pattern categories.
    5050 *
    5151 * @since Twenty Thirteen 4.3
     
    263263if ( ! function_exists( 'twentythirteen_fonts_url' ) ) :
    264264    /**
    265      * Return the font stylesheet URL, if available.
     265     * Returns the font stylesheet URL, if available.
    266266     *
    267267     * The use of Source Sans Pro and Bitter by default is localized. For languages
     
    307307
    308308/**
    309  * Enqueue scripts and styles for the front end.
     309 * Enqueues scripts and styles for the front end.
    310310 *
    311311 * @since Twenty Thirteen 1.0
     
    357357
    358358/**
    359  * Add preconnect for Google Fonts.
     359 * Adds preconnect for Google Fonts.
    360360 *
    361361 * @since Twenty Thirteen 2.1
     
    383383
    384384/**
    385  * Enqueue styles for the block-based editor.
     385 * Enqueues styles for the block-based editor.
    386386 *
    387387 * @since Twenty Thirteen 2.5
     
    397397
    398398/**
    399  * Filter the page title.
     399 * Filters the page title.
    400400 *
    401401 * Creates a nicely formatted and more specific title element text for output
     
    438438
    439439/**
    440  * Register two widget areas.
     440 * Registers two widget areas.
    441441 *
    442442 * @since Twenty Thirteen 1.0
     
    485485if ( ! function_exists( 'twentythirteen_paging_nav' ) ) :
    486486    /**
    487      * Display navigation to next/previous set of posts when applicable.
     487     * Displays navigation to next/previous set of posts when applicable.
    488488     *
    489489     * @since Twenty Thirteen 1.0
     
    522522if ( ! function_exists( 'twentythirteen_post_nav' ) ) :
    523523    /**
    524      * Display navigation to next/previous post when applicable.
     524     * Displays navigation to next/previous post when applicable.
    525525     *
    526526     * @since Twenty Thirteen 1.0
     
    559559if ( ! function_exists( 'twentythirteen_entry_meta' ) ) :
    560560    /**
    561      * Print HTML with meta information for current post: categories, tags, permalink, author, and date.
     561     * Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
    562562     *
    563563     * Create your own twentythirteen_entry_meta() to override in a child theme.
     
    599599if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
    600600    /**
    601      * Print HTML with date information for current post.
     601     * Prints HTML with date information for current post.
    602602     *
    603603     * Create your own twentythirteen_entry_date() to override in a child theme.
     
    635635if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) :
    636636    /**
    637      * Print the attached image with a link to the next attached image.
     637     * Prints the attached image with a link to the next attached image.
    638638     *
    639639     * @since Twenty Thirteen 1.0
     
    701701
    702702/**
    703  * Return the post URL.
     703 * Returns the post URL.
    704704 *
    705705 * @uses get_url_in_content() to get the URL in the post meta (if it exists) or
     
    742742
    743743/**
    744  * Extend the default WordPress body classes.
     744 * Extends the default WordPress body classes.
    745745 *
    746746 * Adds body classes to denote:
     
    772772
    773773/**
    774  * Adjust content_width value for video post formats and attachment templates.
     774 * Adjusts content_width value for video post formats and attachment templates.
    775775 *
    776776 * @since Twenty Thirteen 1.0
     
    790790
    791791/**
    792  * Add postMessage support for site title and description for the Customizer.
     792 * Adds postMessage support for site title and description for the Customizer.
    793793 *
    794794 * @since Twenty Thirteen 1.0
     
    823823
    824824/**
    825  * Render the site title for the selective refresh partial.
     825 * Renders the site title for the selective refresh partial.
    826826 *
    827827 * @since Twenty Thirteen 1.9
     
    836836
    837837/**
    838  * Render the site tagline for the selective refresh partial.
     838 * Renders the site tagline for the selective refresh partial.
    839839 *
    840840 * @since Twenty Thirteen 1.9
     
    849849
    850850/**
    851  * Enqueue JavaScript postMessage handlers for the Customizer.
     851 * Enqueues JavaScript postMessage handlers for the Customizer.
    852852 *
    853853 * Binds JavaScript handlers to make the Customizer preview
     
    904904if ( ! function_exists( 'wp_body_open' ) ) :
    905905    /**
    906      * Fire the wp_body_open action.
     906     * Fires the wp_body_open action.
    907907     *
    908908     * Added for backward compatibility to support pre-5.2.0 WordPress versions.
     
    921921
    922922/**
    923  * Register Custom Block Styles
     923 * Registers Custom Block Styles.
    924924 *
    925925 * @since Twenty Thirteen 3.4
     
    928928    function twentythirteen_register_block_styles() {
    929929
    930         /**
    931          * Register block style
    932          */
    933930        register_block_style(
    934931            'core/button',
Note: See TracChangeset for help on using the changeset viewer.