Make WordPress Core


Ignore:
Timestamp:
11/11/2019 02:41:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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

See #48303.

File:
1 edited

Legend:

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

    r46596 r46696  
    881881 * @param string $from New release unzipped path.
    882882 * @param string $to   Path to old WordPress installation.
    883  * @return WP_Error|null WP_Error on failure, null on success.
     883 * @return null|WP_Error WP_Error on failure, null on success.
    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 WP_Error|true WP_Error on failure, true on success.
     1317 * @return true|WP_Error WP_Error on failure, true on success.
    13181318 */
    13191319function _copy_dir( $from, $to, $skip_list = array() ) {
Note: See TracChangeset for help on using the changeset viewer.