Make WordPress Core

Changeset 60515


Ignore:
Timestamp:
07/27/2025 01:03:38 PM (7 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.

Location:
trunk/src/wp-content/themes/twentythirteen
Files:
4 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',
  • trunk/src/wp-content/themes/twentythirteen/inc/back-compat.php

    r51155 r60515  
    1313
    1414/**
    15  * Prevent switching to Twenty Thirteen on old versions of WordPress.
     15 * Prevents switching to Twenty Thirteen 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 3.6.
     48 * Prevents the Customizer from being loaded on WordPress versions prior to 3.6.
    4949 *
    5050 * @since Twenty Thirteen 1.0
     
    6666
    6767/**
    68  * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4.
     68 * Prevents the Theme Preview from being loaded on WordPress versions prior to 3.4.
    6969 *
    7070 * @since Twenty Thirteen 1.0
  • trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php

    r59832 r60515  
    11<?php
    22/**
    3  * Implement a custom header for Twenty Thirteen
     3 * Implements a custom header for Twenty Thirteen
    44 *
    55 * @link https://codex.wordpress.org/Custom_Headers
     
    1111
    1212/**
    13  * Set up the WordPress core custom header arguments and settings.
     13 * Sets up the WordPress core custom header arguments and settings.
    1414 *
    1515 * @uses add_theme_support() to register support for 3.4 and up.
     
    6666
    6767/**
    68  * Load our special font CSS files.
     68 * Loads our special font CSS files.
    6969 *
    7070 * @since Twenty Thirteen 1.0
     
    8080
    8181/**
    82  * Style the header text displayed on the blog.
     82 * Styles the header text displayed on the blog.
    8383 *
    8484 * get_header_textcolor() options: Hide text (returns 'blank'), or any hex value.
     
    148148
    149149/**
    150  * Style the header image displayed on the Appearance > Header admin panel.
     150 * Styles the header image displayed on the Appearance > Header admin panel.
    151151 *
    152152 * @since Twenty Thirteen 1.0
     
    213213
    214214/**
    215  * Output markup to be displayed on the Appearance > Header admin panel.
     215 * Outputs markup to be displayed on the Appearance > Header admin panel.
    216216 *
    217217 * This callback overrides the default markup displayed there.
  • trunk/src/wp-content/themes/twentythirteen/js/functions.js

    r55861 r60515  
    7676
    7777    /**
    78      * Add or remove ARIA attributes.
     78     * Adds or removes ARIA attributes.
    7979     *
    8080     * Uses jQuery's width() function to determine the size of the window and add
Note: See TracChangeset for help on using the changeset viewer.