Deprecate unused argument of delete_plugins(). Clarify @return value.

props jdgrimes for initial patch.
fixes #28111.

git-svn-id: https://develop.svn.wordpress.org/trunk@28256 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-05-05 10:23:16 +00:00
parent b597b02515
commit 819ad5babc
1 changed files with 7 additions and 9 deletions

View File

@ -717,7 +717,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
* *
* @since 2.6.0 * @since 2.6.0
* *
* @param string|array $plugins * @param string|array $plugins Single plugin or list of plugins to activate.
* @param string $redirect Redirect to page after successful activation. * @param string $redirect Redirect to page after successful activation.
* @param bool $network_wide Whether to enable the plugin for all sites in the network. * @param bool $network_wide Whether to enable the plugin for all sites in the network.
* @param bool $silent Prevent calling activation hooks. Default is false. * @param bool $silent Prevent calling activation hooks. Default is false.
@ -743,18 +743,16 @@ function activate_plugins( $plugins, $redirect = '', $network_wide = false, $sil
} }
/** /**
* Remove directory and files of a plugin for a single or list of plugin(s). * Remove directory and files of a plugin for a list of plugins.
*
* If the plugins parameter list is empty, false will be returned. True when
* completed.
* *
* @since 2.6.0 * @since 2.6.0
* *
* @param array $plugins List of plugin * @param array $plugins List of plugins to delete.
* @param string $redirect Redirect to page when complete. * @param string $deprecated Deprecated.
* @return mixed * @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure.
* Null if filesystem credentials are required to proceed.
*/ */
function delete_plugins($plugins, $redirect = '' ) { function delete_plugins( $plugins, $deprecated = '' ) {
global $wp_filesystem; global $wp_filesystem;
if ( empty($plugins) ) if ( empty($plugins) )