Make WordPress Core

Changeset 54953


Ignore:
Timestamp:
12/09/2022 11:52:58 AM (16 months ago)
Author:
audrasjb
Message:

Docs: Improve various globals documentation, as per documentation standards.

Props upadalavipul.
See #57069, #56792.

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r54239 r54953  
    3131     * @throws ImagickException
    3232     * @global wpdb $wpdb WordPress database abstraction object.
     33     * @global $_wp_theme_features
    3334     *
    3435     * @return array The debug data for the site.
     
    15591560     * @since 5.2.0
    15601561     *
     1562     * @global wpdb $wpdb WordPress database abstraction object.
     1563     *
    15611564     * @return int The size of the database, in bytes.
    15621565     */
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r54872 r54953  
    12841284     *
    12851285     * @since 5.2.0
     1286     *
     1287     * @global wpdb $wpdb WordPress database abstraction object.
    12861288     *
    12871289     * @return array The test results.
  • trunk/src/wp-admin/includes/deprecated.php

    r53228 r54953  
    525525     * @since 2.1.0
    526526     * @access public
     527     *
     528     * @global wpdb $wpdb WordPress database abstraction object.
    527529     */
    528530    public function prepare_query() {
     
    563565     * @since 2.1.0
    564566     * @access public
     567     *
     568     * @global wpdb $wpdb WordPress database abstraction object.
    565569     */
    566570    public function query() {
  • trunk/src/wp-admin/includes/export.php

    r54881 r54953  
    318318     *
    319319     * @since 4.6.0
     320     *
     321     * @global wpdb $wpdb WordPress database abstraction object.
    320322     *
    321323     * @param WP_Term $term Term object.
  • trunk/src/wp-includes/ms-deprecated.php

    r54946 r54953  
    179179 * @deprecated 3.0.0 Use wp_get_sites()
    180180 * @see wp_get_sites()
     181 *
     182 * @global wpdb $wpdb WordPress database abstraction object.
    181183 *
    182184 * @param int    $start      Optional. Offset for retrieving the blog list. Default 0.
  • trunk/src/wp-includes/ms-functions.php

    r54637 r54953  
    12801280 * @since 5.5.0
    12811281 *
     1282 * @global wpdb $wpdb WordPress database abstraction object.
     1283 *
    12821284 * @param int      $id       ID of the user to delete.
    12831285 * @param int|null $reassign ID of the user to reassign posts and links to.
  • trunk/src/wp-includes/option.php

    r54948 r54953  
    10331033 * The multi-table delete syntax is used to delete the transient record
    10341034 * from table a, and the corresponding transient_timeout record from table b.
     1035 *
     1036 * @global wpdb $wpdb WordPress database abstraction object.
    10351037 *
    10361038 * @since 4.9.0
  • trunk/src/wp-includes/post.php

    r54894 r54953  
    79547954 * @access private
    79557955 *
     7956 * @global wpdb $wpdb WordPress database abstraction object.
     7957 *
    79567958 * @param WP_Post $post The post.
    79577959 * @return string New slug for the post.
  • trunk/src/wp-includes/user.php

    r54940 r54953  
    35093509 * @since 4.9.0 The `$site_id` parameter was added to support multisite.
    35103510 *
     3511 * @global wpdb $wpdb WordPress database abstraction object.
     3512 *
    35113513 * @param int|null $site_id Optional. The site ID to get users with no role for. Defaults to the current site.
    35123514 * @return string[] Array of user IDs as strings.
Note: See TracChangeset for help on using the changeset viewer.