Make WordPress Core

Changeset 47414


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.

Location:
trunk/src/wp-admin/includes
Files:
2 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.
  • trunk/src/wp-admin/includes/class-theme-upgrader.php

    r47409 r47414  
    530530     *
    531531     * @param bool|WP_Error $return Upgrade offer return.
    532      * @param array         $theme Theme arguments.
     532     * @param array         $theme  Theme arguments.
    533533     * @return bool|WP_Error The passed in $return param or WP_Error.
    534534     */
     
    562562     *
    563563     * @param bool|WP_Error $return Upgrade offer return.
    564      * @param array         $theme Theme arguments.
     564     * @param array         $theme  Theme arguments.
    565565     * @return bool|WP_Error The passed in $return param or WP_Error.
    566566     */
     
    572572        $theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
    573573
    574         // Only run if current theme
     574        // Only run if current theme.
    575575        if ( get_stylesheet() !== $theme ) {
    576576            return $return;
Note: See TracChangeset for help on using the changeset viewer.