Make WordPress Core

Changeset 36072


Ignore:
Timestamp:
12/23/2015 06:59:47 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Properly mark the optional $redirect, $network_wide, and $silent parameters as such in the DocBlock for activate_plugin().

See #32246.

File:
1 edited

Legend:

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

    r35885 r36072  
    509509 * @since 2.5.0
    510510 *
    511  * @param string $plugin Plugin path to main plugin file with plugin data.
    512  * @param string $redirect Optional. URL to redirect to.
    513  * @param bool $network_wide Whether to enable the plugin for all sites in the
    514  *   network or just the current site. Multisite only. Default is false.
    515  * @param bool $silent Prevent calling activation hooks. Optional, default is false.
     511 * @param string $plugin       Plugin path to main plugin file with plugin data.
     512 * @param string $redirect     Optional. URL to redirect to.
     513 * @param bool   $network_wide Optional. Whether to enable the plugin for all sites in the network
     514 *                             or just the current site. Multisite only. Default false.
     515 * @param bool   $silent       Optional. Whether to prevent calling activation hooks. Default false.
    516516 * @return WP_Error|null WP_Error on invalid file or null on success.
    517517 */
Note: See TracChangeset for help on using the changeset viewer.