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-theme-upgrader.php

    r48971 r49091  
    511511
    512512    /**
    513      * Check that the package source contains a valid theme.
     513     * Checks that the package source contains a valid theme.
    514514     *
    515515     * Hooked to the {@see 'upgrader_source_selection'} filter by Theme_Upgrader::install().
    516      * It will return an error if the theme doesn't have style.css or index.php
    517      * files.
    518516     *
    519517     * @since 3.3.0
     
    522520     * @global string             $wp_version    The WordPress version string.
    523521     *
    524      * @param string $source The full path to the package source.
    525      * @return string|WP_Error The source or a WP_Error.
     522     * @param string $source The path to the downloaded package source.
     523     * @return string|WP_Error The source as passed, or a WP_Error object on failure.
    526524     */
    527525    public function check_package( $source ) {
Note: See TracChangeset for help on using the changeset viewer.