Make WordPress Core


Ignore:
Timestamp:
06/04/2026 10:29:23 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Twenty Fourteen: Add missing documentation for some global variables.

Props sabernhardt, upadalavipul, shailu25, rajinsharwar, audrasjb, viralsampat, noruzzaman, huzaifaalmesbah, SergeyBiryukov.
See #58715.

File:
1 edited

Legend:

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

    r62344 r62465  
    3939/**
    4040 * Twenty Fourteen only works in WordPress 3.6 or later.
     41 *
     42 * @global string $wp_version The WordPress version string.
    4143 */
    4244if ( version_compare( $GLOBALS['wp_version'], '3.6', '<' ) ) {
     
    5557         *
    5658         * @since Twenty Fourteen 1.0
     59         *
     60         * @global string $wp_version The WordPress version string.
    5761         */
    5862        function twentyfourteen_setup() {
     
    227231 *
    228232 * @since Twenty Fourteen 1.0
     233 *
     234 * @global int $content_width Content width.
    229235 */
    230236function twentyfourteen_content_width() {
     
    417423 * @deprecated Twenty Fourteen 3.6 Disabled filter because, by default, fonts are self-hosted.
    418424 *
     425 * @global string $wp_version The WordPress version string.
     426 *
    419427 * @param array   $urls          URLs to print for resource hints.
    420428 * @param string  $relation_type The relation type the URLs are printed.
     
    524532         *
    525533         * @since Twenty Fourteen 1.0
     534         *
     535         * @global string $wp_version The WordPress version string.
    526536         */
    527537        function twentyfourteen_list_authors() {
     
    596606 * @since Twenty Fourteen 1.0
    597607 *
     608 * @global string $pagenow The filename of the current screen.
     609 *
    598610 * @param array $classes A list of existing body class values.
    599611 * @return array The filtered body class list.
     
    665677 * @since Twenty Fourteen 1.0
    666678 *
    667  * @global int $paged WordPress archive pagination page count.
    668  * @global int $page  WordPress paginated post page count.
     679 * @global int $paged Page number of a list of posts.
     680 * @global int $page  Page number of a single post.
    669681 *
    670682 * @param string $title Default title text for current view.
     
    744756 * To overwrite in a plugin, define your own Featured_Content class on or
    745757 * before the 'setup_theme' hook.
     758 *
     759 * @global string $pagenow The filename of the current screen.
    746760 */
    747761if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow'] ) {
Note: See TracChangeset for help on using the changeset viewer.