From 6ac73689f459a9bc7dff8cff045bddade126b984 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 20 Jul 2017 13:46:14 +0000 Subject: [PATCH] Docs: Add a `@global` entry for `$wp_filesystem` in `wp_ajax_install_theme()`, `wp_ajax_update_theme()`, `wp_ajax_delete_theme()`, `wp_ajax_install_plugin()`, `wp_ajax_update_plugin()`, and `wp_ajax_delete_plugin()`. Props ronakganatra. Fixes #41382. git-svn-id: https://develop.svn.wordpress.org/trunk@41110 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/ajax-actions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index e132ac8101..0008ed1843 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -3358,6 +3358,8 @@ function wp_ajax_save_wporg_username() { * @since 4.6.0 * * @see Theme_Upgrader + * + * @global WP_Filesystem_Base $wp_filesystem Subclass */ function wp_ajax_install_theme() { check_ajax_referer( 'updates' ); @@ -3465,6 +3467,8 @@ function wp_ajax_install_theme() { * @since 4.6.0 * * @see Theme_Upgrader + * + * @global WP_Filesystem_Base $wp_filesystem Subclass */ function wp_ajax_update_theme() { check_ajax_referer( 'updates' ); @@ -3550,6 +3554,8 @@ function wp_ajax_update_theme() { * @since 4.6.0 * * @see delete_theme() + * + * @global WP_Filesystem_Base $wp_filesystem Subclass */ function wp_ajax_delete_theme() { check_ajax_referer( 'updates' ); @@ -3618,6 +3624,8 @@ function wp_ajax_delete_theme() { * @since 4.6.0 * * @see Plugin_Upgrader + * + * @global WP_Filesystem_Base $wp_filesystem Subclass */ function wp_ajax_install_plugin() { check_ajax_referer( 'updates' ); @@ -3717,6 +3725,8 @@ function wp_ajax_install_plugin() { * @since 4.2.0 * * @see Plugin_Upgrader + * + * @global WP_Filesystem_Base $wp_filesystem Subclass */ function wp_ajax_update_plugin() { check_ajax_referer( 'updates' ); @@ -3820,6 +3830,8 @@ function wp_ajax_update_plugin() { * @since 4.6.0 * * @see delete_plugins() + * + * @global WP_Filesystem_Base $wp_filesystem Subclass */ function wp_ajax_delete_plugin() { check_ajax_referer( 'updates' );