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.
Built from https://develop.svn.wordpress.org/trunk@41110


git-svn-id: http://core.svn.wordpress.org/trunk@40950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-07-20 13:47:43 +00:00
parent 3946198df8
commit 4653f8bcfa
2 changed files with 13 additions and 1 deletions

View File

@ -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' );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41109';
$wp_version = '4.9-alpha-41110';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.