Make WordPress Core

Ticket #60855: 60855.patch

File 60855.patch, 552 bytes (added by siliconforks, 2 years ago)

Is it possibly as simple as this?

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 3634190663..fbd6614581 100644
    a b function wp_mkdir_p( $target ) { 
    20972097                return true;
    20982098        }
    20992099
     2100        /*
     2101         * If we get here, mkdir() failed.
     2102         *
     2103         * Maybe another process was trying to create the directory at the same time
     2104         * (and succeeded)?
     2105         *
     2106         * Check if the target exists (again).
     2107         */
     2108        if ( file_exists( $target ) ) {
     2109                return @is_dir( $target );
     2110        }
     2111
    21002112        return false;
    21012113}
    21022114