WordPress.org

Make WordPress Core

Changeset 47099


Ignore:
Timestamp:
01/22/2020 12:17:24 AM (9 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return value for update_core() and Core_Upgrader::upgrade().

See #48303.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r47060 r47099  
    5858     *                                     Default false.
    5959     * }
    60      * @return null|false|WP_Error Null on success, false or WP_Error on failure.
     60     * @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure.
    6161     */
    6262    public function upgrade( $current, $args = array() ) {
  • trunk/src/wp-admin/includes/update-core.php

    r47060 r47099  
    881881 * @param string $from New release unzipped path.
    882882 * @param string $to   Path to old WordPress installation.
    883  * @return null|WP_Error Null on success, WP_Error on failure.
     883 * @return string|WP_Error New WordPress version on success, WP_Error on failure.
    884884 */
    885885function update_core( $from, $to ) {
Note: See TracChangeset for help on using the changeset viewer.