WordPress.org

Make WordPress Core

Ticket #44083: 44083.1.diff

File 44083.1.diff, 573 bytes (added by nx2017, 2 years ago)

Before and after actions for direction creation has been implemented.

  • wp-includes/functions.php

    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    index 9c70c35..ca8cdfb 100644
    a b function wp_mkdir_p( $target ) { 
    16901690                $dir_perms = 0777;
    16911691        }
    16921692       
    1693         do_action('wp_before_directory_creation');
     1693        do_action( 'wp_before_directory_creation' );
    16941694       
    16951695        if ( @mkdir( $target, $dir_perms, true ) ) {
    16961696           
    1697             do_action('wp_after_directory_creation');
     1697            do_action( 'wp_after_directory_creation' );
    16981698
    16991699                /*
    17001700                 * If a umask is set that modifies $dir_perms, we'll have to re-set