Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete existing links that are broken (#36470)
When a link exists but is broken, `file_exists($link)` return false. And when `symlink($link, $target)` is called on a broken link, a PHP Warning is returned and the link is not updated. To fix this, we add an additional check using `is_link($link)` (which return true, even if the link is broken) to detect and delete broken links.
- Loading branch information