Make WordPress Core

Changeset 60508


Ignore:
Timestamp:
07/24/2025 02:45:00 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Twenty Twelve: 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/twentytwelve
Files:
2 edited

Legend:

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

    r60456 r60508  
    136136
    137137/**
    138  * Add support for a custom header image.
     138 * Adds support for a custom header image.
    139139 */
    140140require get_template_directory() . '/inc/custom-header.php';
    141141
    142142/**
    143  * Register block patterns and pattern categories.
     143 * Registers block patterns and pattern categories.
    144144 *
    145145 * @since Twenty Twelve 4.4
     
    179179
    180180/**
    181  * Enqueue scripts and styles for front end.
     181 * Enqueues scripts and styles for front end.
    182182 *
    183183 * @since Twenty Twelve 1.0
     
    225225
    226226/**
    227  * Enqueue styles for the block-based editor.
     227 * Enqueues styles for the block-based editor.
    228228 *
    229229 * @since Twenty Twelve 2.6
     
    239239
    240240/**
    241  * Add preconnect for Google Fonts.
     241 * Adds preconnect for Google Fonts.
    242242 *
    243243 * @since Twenty Twelve 2.2
     
    265265
    266266/**
    267  * Filter TinyMCE CSS path to include hosted fonts.
     267 * Filters TinyMCE CSS path to include hosted fonts.
    268268 *
    269269 * Adds additional stylesheets to the TinyMCE editor if needed.
     
    294294
    295295/**
    296  * Filter the page title.
     296 * Filters the page title.
    297297 *
    298298 * Creates a nicely formatted and more specific title element text
     
    332332
    333333/**
    334  * Filter the page menu arguments.
     334 * Filters the page menu arguments.
    335335 *
    336336 * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link.
     
    347347
    348348/**
    349  * Register sidebars.
     349 * Registers sidebars.
    350350 *
    351351 * Registers our main widget area and the front page widget areas.
     
    517517if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
    518518    /**
    519      * Set up post entry meta.
     519     * Sets up post entry meta.
    520520     *
    521521     * Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
     
    640640
    641641/**
    642  * Register postMessage support.
    643  *
    644  * Add postMessage support for site title and description for the Customizer.
     642 * Registers postMessage support.
     643 *
     644 * Adds postMessage support for site title and description for the Customizer.
    645645 *
    646646 * @since Twenty Twelve 1.0
     
    701701
    702702/**
    703  * Enqueue JavaScript postMessage handlers for the Customizer.
     703 * Enqueues JavaScript postMessage handlers for the Customizer.
    704704 *
    705705 * Binds JS handlers to make the Customizer preview reload changes asynchronously.
  • trunk/src/wp-content/themes/twentytwelve/inc/custom-header.php

    r59832 r60508  
    11<?php
    22/**
    3  * Implement an optional custom header for Twenty Twelve
     3 * Implements an optional custom header for Twenty Twelve
    44 *
    55 * See 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.
Note: See TracChangeset for help on using the changeset viewer.