[wp-trac] [WordPress Trac] #44083: Add action to wp_mkdir_p() when directory is created successfully
WordPress Trac
noreply at wordpress.org
Mon Feb 12 22:17:03 UTC 2024
#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 |
-------------------------------------------------+-------------------------
Comment (by costdev):
> But why is before_create_directory needed? What benefits does it
provide?
Good question @hellofromTonya!
I think the `before_create_directory` hook was likely added for
consistency in wrapping the logic in `before_*` and `after_*` actions,
similar to `pre_something` and `something` hooks used in Core.
@desrosj may have some thoughts on the reasoning, maybe?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44083#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list