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
This commit is contained in:
parent
3f38a85894
commit
6ac73689f4
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user