Docs: Expand delete_theme()
return value, fix typo in delete_plugins()
return value.
See #42505. git-svn-id: https://develop.svn.wordpress.org/trunk@42778 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e0b16ef59c
commit
2d37bd46ec
@ -816,7 +816,7 @@ function activate_plugins( $plugins, $redirect = '', $network_wide = false, $sil
|
||||
*
|
||||
* @param array $plugins List of plugins to delete.
|
||||
* @param string $deprecated Deprecated.
|
||||
* @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure.
|
||||
* @return bool|null|WP_Error True on success, false if `$plugins` is empty, WP_Error on failure.
|
||||
* Null if filesystem credentials are required to proceed.
|
||||
*/
|
||||
function delete_plugins( $plugins, $deprecated = '' ) {
|
||||
|
@ -13,9 +13,10 @@
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
|
||||
*
|
||||
* @param string $stylesheet Stylesheet of the theme to delete
|
||||
* @param string $redirect Redirect to page when complete.
|
||||
* @return void|bool|WP_Error When void, echoes content.
|
||||
* @param string $stylesheet Stylesheet of the theme to delete.
|
||||
* @param string $redirect Redirect to page when complete.
|
||||
* @return bool|null|WP_Error True on success, false if `$stylesheet` is empty, WP_Error on failure.
|
||||
* Null if filesystem credentials are required to proceed.
|
||||
*/
|
||||
function delete_theme( $stylesheet, $redirect = '' ) {
|
||||
global $wp_filesystem;
|
||||
|
Loading…
Reference in New Issue
Block a user