Make WordPress Core


Ignore:
Timestamp:
10/05/2020 01:42:04 PM (4 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-language-pack-upgrader.php

    r47808 r49091  
    310310
    311311    /**
    312      * Check the package source to make sure there are .mo and .po files.
     312     * Checks that the package source contains .mo and .po files.
    313313     *
    314314     * Hooked to the {@see 'upgrader_source_selection'} filter by
     
    317317     * @since 3.7.0
    318318     *
    319      * @global WP_Filesystem_Base $wp_filesystem Subclass
    320      *
    321      * @param string|WP_Error $source
    322      * @param string          $remote_source
     319     * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
     320     *
     321     * @param string|WP_Error $source        The path to the downloaded package source.
     322     * @param string          $remote_source Remote file source location.
     323     * @return string|WP_Error The source as passed, or a WP_Error object on failure.
    323324     */
    324325    public function check_package( $source, $remote_source ) {
Note: See TracChangeset for help on using the changeset viewer.