Make WordPress Core

Changeset 58200


Ignore:
Timestamp:
05/26/2024 08:49:30 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the placement of @global tags in various files.

Follow-up to [6589], [8598], [10798], [25490], [25594], [31192], [31194], [35718], [37437], [44169], [44948], [45247], [56763], [56773], [57370], [57503].

Props shailu25.
Fixes #61295.

Location:
trunk/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/export.php

    r58129 r58200  
    130130 * Creates the date options fields for exporting a given post type.
    131131 *
     132 * @since 3.1.0
     133 *
    132134 * @global wpdb      $wpdb      WordPress database abstraction object.
    133135 * @global WP_Locale $wp_locale WordPress date and time locale object.
    134  *
    135  * @since 3.1.0
    136136 *
    137137 * @param string $post_type The post type. Default 'post'.
  • trunk/src/wp-includes/class-wp-locale.php

    r56178 r58200  
    356356     * For backward compatibility only.
    357357     *
     358     * @since 2.1.0
    358359     * @deprecated For backward compatibility only.
    359360     *
     
    363364     * @global array $month
    364365     * @global array $month_abbrev
    365      *
    366      * @since 2.1.0
    367366     */
    368367    public function register_globals() {
  • trunk/src/wp-includes/feed.php

    r58097 r58200  
    698698 * comment will be returned.
    699699 *
     700 * @since 5.2.0
     701 *
    700702 * @global WP_Query $wp_query WordPress Query object.
    701  *
    702  * @since 5.2.0
    703703 *
    704704 * @param string $format Date format string to return the time in.
  • trunk/src/wp-includes/functions.php

    r58169 r58200  
    47634763 * available.
    47644764 *
     4765 * @since 2.2.0
     4766 *
    47654767 * @global array $wpsmiliestrans
    47664768 * @global array $wp_smiliessearch
    4767  *
    4768  * @since 2.2.0
    47694769 */
    47704770function smilies_init() {
  • trunk/src/wp-includes/functions.wp-scripts.php

    r58068 r58200  
    1212 * Initializes $wp_scripts if it has not been set.
    1313 *
     14 * @since 4.2.0
     15 *
    1416 * @global WP_Scripts $wp_scripts
    15  *
    16  * @since 4.2.0
    1717 *
    1818 * @return WP_Scripts WP_Scripts instance.
     
    7878 *
    7979 * @see WP_Scripts::do_item()
     80 * @since 2.1.0
     81 *
    8082 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
    81  *
    82  * @since 2.1.0
    8383 *
    8484 * @param string|string[]|false $handles Optional. Scripts to be printed. Default 'false'.
     
    235235 *
    236236 * @see WP_Scripts::set_translations()
    237  * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
    238  *
    239237 * @since 5.0.0
    240238 * @since 5.1.0 The `$domain` parameter was made optional.
     239 *
     240 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
    241241 *
    242242 * @param string $handle Script handle the textdomain will be attached to.
  • trunk/src/wp-includes/functions.wp-styles.php

    r55072 r58200  
    1212 * Initializes $wp_styles if it has not been set.
    1313 *
     14 * @since 4.2.0
     15 *
    1416 * @global WP_Styles $wp_styles
    15  *
    16  * @since 4.2.0
    1717 *
    1818 * @return WP_Styles WP_Styles instance.
     
    3535 * and passing an array of strings prints those styles.
    3636 *
     37 * @since 2.6.0
     38 *
    3739 * @global WP_Styles $wp_styles The WP_Styles object for printing styles.
    38  *
    39  * @since 2.6.0
    4040 *
    4141 * @param string|bool|array $handles Styles to be printed. Default 'false'.
  • trunk/src/wp-includes/post.php

    r58184 r58200  
    79377937 * Prime the cache containing the parent ID of various post objects.
    79387938 *
     7939 * @since 6.4.0
     7940 *
    79397941 * @global wpdb $wpdb WordPress database abstraction object.
    7940  *
    7941  * @since 6.4.0
    79427942 *
    79437943 * @param int[] $ids ID list.
  • trunk/src/wp-includes/script-modules.php

    r58037 r58200  
    1515 * if it doesn't exist yet.
    1616 *
     17 * @since 6.5.0
     18 *
    1719 * @global WP_Script_Modules $wp_script_modules
    18  *
    19  * @since 6.5.0
    2020 *
    2121 * @return WP_Script_Modules The main WP_Script_Modules instance.
  • trunk/src/wp-includes/widgets.php

    r57370 r58200  
    2929 * Stores the sidebars, since many themes can have more than one.
    3030 *
     31 * @since 2.2.0
     32 *
    3133 * @global array $wp_registered_sidebars The registered sidebars.
     34 */
     35$wp_registered_sidebars = array();
     36
     37/**
     38 * Stores the registered widgets.
     39 *
    3240 * @since 2.2.0
    33  */
    34 $wp_registered_sidebars = array();
    35 
    36 /**
    37  * Stores the registered widgets.
    3841 *
    3942 * @global array $wp_registered_widgets The registered widgets.
     43 */
     44$wp_registered_widgets = array();
     45
     46/**
     47 * Stores the registered widget controls (options).
     48 *
    4049 * @since 2.2.0
    41  */
    42 $wp_registered_widgets = array();
    43 
    44 /**
    45  * Stores the registered widget controls (options).
    4650 *
    4751 * @global array $wp_registered_widget_controls The registered widget controls.
    48  * @since 2.2.0
    4952 */
    5053$wp_registered_widget_controls = array();
    51 /**
     54
     55/**
     56 * Stores the registered widget updates.
     57 *
     58 * @since 2.8.0
     59 *
    5260 * @global array $wp_registered_widget_updates The registered widget updates.
    5361 */
  • trunk/src/wp-includes/widgets/class-wp-nav-menu-widget.php

    r53630 r58200  
    138138     * @since 3.0.0
    139139     *
     140     * @global WP_Customize_Manager $wp_customize
     141     *
    140142     * @param array $instance Current settings.
    141      * @global WP_Customize_Manager $wp_customize
    142143     */
    143144    public function form( $instance ) {
Note: See TracChangeset for help on using the changeset viewer.