WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/11/2020 06:30:58 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696].

See #48303.

File:
1 edited

Legend:

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

    r47007 r47060  
    881881 * @param string $from New release unzipped path.
    882882 * @param string $to   Path to old WordPress installation.
    883  * @return null|WP_Error WP_Error on failure, null on success.
     883 * @return null|WP_Error Null on success, WP_Error on failure.
    884884 */
    885885function update_core( $from, $to ) {
     
    13151315 * @param string   $to        Destination directory.
    13161316 * @param string[] $skip_list Array of files/folders to skip copying.
    1317  * @return true|WP_Error WP_Error on failure, true on success.
     1317 * @return true|WP_Error True on success, WP_Error on failure.
    13181318 */
    13191319function _copy_dir( $from, $to, $skip_list = array() ) {
Note: See TracChangeset for help on using the changeset viewer.