Make WordPress Core

Changeset 28256


Ignore:
Timestamp:
05/05/2014 10:23:16 AM (10 years ago)
Author:
SergeyBiryukov
Message:

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

props jdgrimes for initial patch.
fixes #28111.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r27769 r28256  
    718718 * @since 2.6.0
    719719 *
    720  * @param string|array $plugins
     720 * @param string|array $plugins Single plugin or list of plugins to activate.
    721721 * @param string $redirect Redirect to page after successful activation.
    722722 * @param bool $network_wide Whether to enable the plugin for all sites in the network.
     
    744744
    745745/**
    746  * Remove directory and files of a plugin for a single or list of plugin(s).
    747  *
    748  * If the plugins parameter list is empty, false will be returned. True when
    749  * completed.
     746 * Remove directory and files of a plugin for a list of plugins.
    750747 *
    751748 * @since 2.6.0
    752749 *
    753  * @param array $plugins List of plugin
    754  * @param string $redirect Redirect to page when complete.
    755  * @return mixed
    756  */
    757 function delete_plugins($plugins, $redirect = '' ) {
     750 * @param array  $plugins    List of plugins to delete.
     751 * @param string $deprecated Deprecated.
     752 * @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure.
     753 *                            Null if filesystem credentials are required to proceed.
     754 */
     755function delete_plugins( $plugins, $deprecated = '' ) {
    758756    global $wp_filesystem;
    759757
Note: See TracChangeset for help on using the changeset viewer.