Make WordPress Core

Changeset 55472


Ignore:
Timestamp:
03/07/2023 08:28:40 AM (19 months ago)
Author:
audrasjb
Message:

Bundled Themes: Improve various globals documentation, as per docblock standards.

Props viralsampat, audrasjb, costdev.
See #56792, #57069.

Location:
trunk/src/wp-content/themes
Files:
4 edited

Legend:

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

    r55420 r55472  
    722722 * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the
    723723 * `is_customize_preview` function was introduced.
     724 *
     725 * @global WP_Customize_Manager $wp_customize Customizer object.
    724726 */
    725727if ( ! function_exists( 'is_customize_preview' ) ) :
  • trunk/src/wp-content/themes/twentyseventeen/front-page.php

    r52013 r55472  
    3939             * @since Twenty Seventeen 1.0
    4040             *
     41             * @global int|string $twentyseventeencounter Front page section counter.
     42             *
    4143             * @param int $num_sections Number of front page sections.
    4244             */
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r55420 r55472  
    384384 * @since Twenty Thirteen 1.0
    385385 *
     386 * @global int $paged WordPress archive pagination page count.
     387 * @global int $page  WordPress paginated post page count.
     388 *
    386389 * @param string $title Default title text for current view.
    387390 * @param string $sep   Optional separator.
     
    752755 *
    753756 * @since Twenty Thirteen 1.0
     757 *
     758 * @global int $content_width Content width.
    754759 */
    755760function twentythirteen_content_width() {
  • trunk/src/wp-content/themes/twentytwenty/index.php

    r52013 r55472  
    2626
    2727    if ( is_search() ) {
     28        /**
     29         * @global WP_Query $wp_query WordPress Query object.
     30         */
    2831        global $wp_query;
    2932
Note: See TracChangeset for help on using the changeset viewer.