Make WordPress Core


Ignore:
Timestamp:
03/03/2020 11:38:00 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct formatting of some DocBlocks in Plugin_Upgrader and Theme_Upgrader per the documentation standards.

See #49400.

File:
1 edited

Legend:

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

    r47409 r47414  
    416416     * @since 4.1.0 Added a return value.
    417417     *
    418      * @param bool|WP_Error  $return Upgrade offer return.
    419      * @param array          $plugin Plugin package arguments.
     418     * @param bool|WP_Error $return Upgrade offer return.
     419     * @param array         $plugin Plugin package arguments.
    420420     * @return bool|WP_Error The passed in $return param or WP_Error.
    421421     */
     
    467467        $plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
    468468
    469         // Only run if plugin is active
     469        // Only run if plugin is active.
    470470        if ( ! is_plugin_active( $plugin ) ) {
    471471            return $return;
     
    487487     * @since 5.4.0
    488488     *
    489      * @param bool|WP_Error  $return Upgrade offer return.
    490      * @param array          $plugin Plugin package arguments.
     489     * @param bool|WP_Error $return Upgrade offer return.
     490     * @param array         $plugin Plugin package arguments.
    491491     * @return bool|WP_Error The passed in $return param or WP_Error.
    492492     */
     
    526526     * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    527527     *
    528      * @param bool|WP_Error $removed            Whether the destination was cleared. true on success, WP_Error on failure.
     528     * @param bool|WP_Error $removed            Whether the destination was cleared.
     529     *                                          True on success, WP_Error on failure.
    529530     * @param string        $local_destination  The local package destination.
    530531     * @param string        $remote_destination The remote package destination.
Note: See TracChangeset for help on using the changeset viewer.