Make WordPress Core


Ignore:
Timestamp:
12/18/2023 01:51:20 PM (14 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document some globals in wp-includes/deprecated.php.

Includes removing $allowed_options global references from functions where it's not actually used.

Props viralsampat.
See #60021.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r56932 r57196  
    5858 * @since 1.0.1
    5959 * @deprecated 1.5.0
     60 *
     61 * @global WP_Query $wp_query WordPress Query object.
    6062 */
    6163function start_wp() {
     
    22182220 * @see delete_user_meta()
    22192221 *
     2222 * @global wpdb $wpdb WordPress database abstraction object.
     2223 *
    22202224 * @param int $user_id User ID.
    22212225 * @param string $meta_key Metadata key.
     
    22642268 * @deprecated 3.0.0 Use get_user_meta()
    22652269 * @see get_user_meta()
     2270 *
     2271 * @global wpdb $wpdb WordPress database abstraction object.
    22662272 *
    22672273 * @param int $user_id User ID
     
    23162322 * @deprecated 3.0.0 Use update_user_meta()
    23172323 * @see update_user_meta()
     2324 *
     2325 * @global wpdb $wpdb WordPress database abstraction object.
    23182326 *
    23192327 * @param int $user_id User ID
     
    27532761 * @since 2.8.0
    27542762 * @deprecated 3.3.0
     2763 *
     2764 * @global WP_Post $post Global post object.
    27552765 *
    27562766 * @param string $title Optional. Link title format. Default '%title'.
     
    40634073 *                   Please consider writing more inclusive code.
    40644074 *
    4065  * @global array $allowed_options
    4066  *
    40674075 * @param array        $new_options
    40684076 * @param string|array $options
     
    40814089 * @deprecated 5.5.0 Use remove_allowed_options() instead.
    40824090 *                   Please consider writing more inclusive code.
    4083  *
    4084  * @global array $allowed_options
    40854091 *
    40864092 * @param array        $del_options
Note: See TracChangeset for help on using the changeset viewer.