Make WordPress Core


Ignore:
Timestamp:
11/11/2019 02:41:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of WP_Error.

See #48303.

File:
1 edited

Legend:

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

    r46695 r46696  
    614614 *                             or just the current site. Multisite only. Default false.
    615615 * @param bool   $silent       Optional. Whether to prevent calling activation hooks. Default false.
    616  * @return WP_Error|null WP_Error on invalid file or null on success.
     616 * @return null|WP_Error WP_Error on invalid file or null on success.
    617617 */
    618618function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) {
     
    10721072 *
    10731073 * @param string $plugin Path to the plugin file relative to the plugins directory.
    1074  * @return WP_Error|int 0 on success, WP_Error on failure.
     1074 * @return int|WP_Error 0 on success, WP_Error on failure.
    10751075 */
    10761076function validate_plugin( $plugin ) {
Note: See TracChangeset for help on using the changeset viewer.