mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
Docs: Add missing @global variable descriptions.
Developed in https://github.com/WordPress/wordpress-develop/pull/10864 Follow-up to [61604], [61592]. Props noruzzaman, huzaifaalmesbah, shailu25, sabernhardt, westonruter. See #64224. Built from https://develop.svn.wordpress.org/trunk@61638 git-svn-id: http://core.svn.wordpress.org/trunk@60949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1241,7 +1241,7 @@ function wp_ajax_get_tagcloud() {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global int $post_id
|
||||
* @global int $post_id Post ID.
|
||||
*
|
||||
* @param string $action Action to perform.
|
||||
*/
|
||||
@@ -2353,9 +2353,9 @@ function wp_ajax_widgets_order() {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global array $wp_registered_widgets
|
||||
* @global array $wp_registered_widget_controls
|
||||
* @global array $wp_registered_widget_updates
|
||||
* @global array $wp_registered_widgets Registered widgets.
|
||||
* @global array $wp_registered_widget_controls Registered widget controls.
|
||||
* @global array $wp_registered_widget_updates Registered widget updates.
|
||||
*/
|
||||
function wp_ajax_save_widget() {
|
||||
global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates;
|
||||
@@ -2462,7 +2462,7 @@ function wp_ajax_save_widget() {
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @global WP_Customize_Manager $wp_customize
|
||||
* @global WP_Customize_Manager $wp_customize Customizer manager object.
|
||||
*/
|
||||
function wp_ajax_update_widget() {
|
||||
global $wp_customize;
|
||||
@@ -3588,7 +3588,7 @@ function wp_ajax_get_revision_diffs() {
|
||||
*
|
||||
* @since 3.8.0
|
||||
*
|
||||
* @global array $_wp_admin_css_colors
|
||||
* @global array $_wp_admin_css_colors Registered admin CSS color schemes.
|
||||
*/
|
||||
function wp_ajax_save_user_color_scheme() {
|
||||
global $_wp_admin_css_colors;
|
||||
@@ -3617,8 +3617,8 @@ function wp_ajax_save_user_color_scheme() {
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @global array $themes_allowedtags
|
||||
* @global array $theme_field_defaults
|
||||
* @global array $themes_allowedtags Allowed HTML tags for theme descriptions.
|
||||
* @global array $theme_field_defaults Default theme fields.
|
||||
*/
|
||||
function wp_ajax_query_themes() {
|
||||
global $themes_allowedtags, $theme_field_defaults;
|
||||
@@ -3750,8 +3750,8 @@ function wp_ajax_query_themes() {
|
||||
*
|
||||
* @global WP_Post $post Global post object.
|
||||
* @global WP_Embed $wp_embed WordPress Embed object.
|
||||
* @global WP_Scripts $wp_scripts
|
||||
* @global int $content_width
|
||||
* @global WP_Scripts $wp_scripts Script dependencies object.
|
||||
* @global int $content_width Shared post content width.
|
||||
*/
|
||||
function wp_ajax_parse_embed() {
|
||||
global $post, $wp_embed, $content_width;
|
||||
@@ -3891,7 +3891,7 @@ function wp_ajax_parse_embed() {
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @global WP_Post $post Global post object.
|
||||
* @global WP_Scripts $wp_scripts
|
||||
* @global WP_Scripts $wp_scripts Script dependencies object.
|
||||
*/
|
||||
function wp_ajax_parse_media_shortcode() {
|
||||
global $post, $wp_scripts;
|
||||
|
||||
@@ -48,7 +48,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
|
||||
* @global callable $_wp_filesystem_direct_method
|
||||
* @global callable $_wp_filesystem_direct_method Filesystem direct method callback.
|
||||
*
|
||||
* @param object $current Response object for whether WordPress is current.
|
||||
* @param array $args {
|
||||
|
||||
@@ -268,7 +268,7 @@ class Custom_Image_Header {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global array $_wp_default_headers
|
||||
* @global array $_wp_default_headers Default headers registered for themes.
|
||||
*/
|
||||
public function process_default_headers() {
|
||||
global $_wp_default_headers;
|
||||
|
||||
@@ -746,7 +746,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||
* @global WP_Filesystem_Base $wp_filesystem Filesystem subclass.
|
||||
*
|
||||
* @param bool $removed
|
||||
* @param string $local_destination
|
||||
|
||||
@@ -64,8 +64,8 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
|
||||
* @since 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id`
|
||||
* to match parent class for PHP 8 named parameter support.
|
||||
*
|
||||
* @global int $_nav_menu_placeholder
|
||||
* @global int|string $nav_menu_selected_id
|
||||
* @global int $_nav_menu_placeholder A placeholder for the nav menu item ID.
|
||||
* @global int|string $nav_menu_selected_id The ID of the selected nav menu.
|
||||
*
|
||||
* @param string $output Used to append additional content (passed by reference).
|
||||
* @param WP_Post $data_object Menu item data object.
|
||||
|
||||
@@ -49,7 +49,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
* @since 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id`
|
||||
* to match parent class for PHP 8 named parameter support.
|
||||
*
|
||||
* @global int $_wp_nav_menu_max_depth
|
||||
* @global int $_wp_nav_menu_max_depth The maximum depth of the nav menu.
|
||||
*
|
||||
* @param string $output Used to append additional content (passed by reference).
|
||||
* @param WP_Post $data_object Menu item data object.
|
||||
|
||||
@@ -31,7 +31,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
*
|
||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||
*
|
||||
* @global int $post_id
|
||||
* @global int $post_id The ID of the post to show comments for.
|
||||
*
|
||||
* @param array $args An associative array of arguments.
|
||||
*/
|
||||
@@ -224,8 +224,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
|
||||
/**
|
||||
* Displays a message when no comments are found.
|
||||
*
|
||||
* @global string $comment_status
|
||||
* @global string $comment_status The current comment status filter.
|
||||
*/
|
||||
public function no_items() {
|
||||
global $comment_status;
|
||||
@@ -242,9 +241,9 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
/**
|
||||
* Returns an array of comment status links.
|
||||
*
|
||||
* @global int $post_id
|
||||
* @global string $comment_status
|
||||
* @global string $comment_type
|
||||
* @global int $post_id The ID of the post to show comments for.
|
||||
* @global string $comment_status The current comment status.
|
||||
* @global string $comment_type The current comment type.
|
||||
*
|
||||
* @return array<string, string> Comment status HTML links keyed by view.
|
||||
*/
|
||||
@@ -412,8 +411,8 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
/**
|
||||
* Displays extra controls between bulk actions and pagination.
|
||||
*
|
||||
* @global string $comment_status
|
||||
* @global string $comment_type
|
||||
* @global string $comment_status Current comment status.
|
||||
* @global string $comment_type Current comment type.
|
||||
*
|
||||
* @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'.
|
||||
*/
|
||||
@@ -485,7 +484,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
/**
|
||||
* Gets the list of columns.
|
||||
*
|
||||
* @global int $post_id
|
||||
* @global int $post_id The ID of the post comments are being shown for.
|
||||
*
|
||||
* @return string[] Array of column titles keyed by their column name.
|
||||
*/
|
||||
@@ -1011,7 +1010,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
/**
|
||||
* Outputs the author column.
|
||||
*
|
||||
* @global string $comment_status
|
||||
* @global string $comment_status The current comment status.
|
||||
*
|
||||
* @param WP_Comment $comment The comment object.
|
||||
*/
|
||||
|
||||
@@ -342,6 +342,7 @@ if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
|
||||
/**
|
||||
* @global string $wp_local_package Locale code of the package.
|
||||
* @global WP_Locale $wp_locale WordPress date and time locale object.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
$language = '';
|
||||
if ( ! empty( $_REQUEST['language'] ) ) {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-alpha-61637';
|
||||
$wp_version = '7.0-alpha-61638';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user