mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 05:55:18 +00:00
* Check for direct PHP flle access and only use `rename()` if true. * Check whether the destination directory was successfully created. * Clear the working directory so there is internal parity within the function between the results of a successful `rename()` and a fallback to `copy_dir()`. * Use `move_dir()` in `WP_Upgrader::move_to_temp_backup_dir()` and `::restore_temp_backup()`. Follow-up to [51815], [51898], [51899], [51902], [52192], [52284]. Props afragen, peterwilsoncc, dd32, SergeyBiryukov. See #54166, #51857. Built from https://develop.svn.wordpress.org/trunk@52289 git-svn-id: http://core.svn.wordpress.org/trunk@51881 1a063a9b-81f0-0310-95a4-ce76da25c4cd