Make WordPress Core


Ignore:
Timestamp:
10/05/2020 01:42:04 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing @return tag to Language_Pack_Upgrader::check_package().

Synchronize documentation of the ::check_package() method between Plugin_Upgrader, Theme_Upgrader, and Language_Pack_Upgrader.

Props ankitmaru, mukesh27, desrosj.
Fixes #51448.

File:
1 edited

Legend:

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

    r48971 r49091  
    399399
    400400        /**
    401          * Check a source package to be sure it contains a plugin.
    402          *
    403          * This function is added to the {@see 'upgrader_source_selection'} filter by
    404          * Plugin_Upgrader::install().
     401         * Checks that the source package contains a valid plugin.
     402         *
     403         * Hooked to the {@see 'upgrader_source_selection'} filter by Plugin_Upgrader::install().
    405404         *
    406405         * @since 3.3.0
     
    410409         *
    411410         * @param string $source The path to the downloaded package source.
    412          * @return string|WP_Error The source as passed, or a WP_Error object
    413          *                         if no plugins were found.
     411         * @return string|WP_Error The source as passed, or a WP_Error object on failure.
    414412         */
    415413        public function check_package( $source ) {
Note: See TracChangeset for help on using the changeset viewer.