[wp-trac] [WordPress Trac] #44083: Add action to wp_mkdir_p() when directory is created successfully

WordPress Trac noreply at wordpress.org
Wed Aug 9 20:35:12 UTC 2023


#44083: Add action to wp_mkdir_p() when directory is created successfully
-------------------------------------------------+-------------------------
 Reporter:  johnjamesjacoby                      |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Filesystem API                       |     Version:  2.0.1
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------

Comment (by Clorith):

 Having had a look at [https://github.com/WordPress/wordpress-
 develop/pull/4927 PR 4927], it's looking pretty good, but I am wondering
 if perhaps another enhancement should be included before this is
 committed, to cover failure scenarios as well.

 Currently, there is a proposed before and after hook, but the after-hook
 only fires if the directory is created. Should there also be a hook for
 when the creation fails?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44083#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list