[wp-trac] [WordPress Trac] #40364: Improve site creation in multisite
WordPress Trac
noreply at wordpress.org
Mon Sep 11 17:58:32 UTC 2017
#40364: Improve site creation in multisite
-------------------------------------------------+------------------------
Reporter: jeremyfelt | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: ms-roadmap has-patch has-unit-tests | Focuses: multisite
-------------------------------------------------+------------------------
Comment (by jeremyfelt):
Replying to [comment:22 flixos90]:
> > The action names `wp_insert_site`, `wp_update_site`, and
`wp_delete_site` don't necessarily clarify on their own (to me) that the
action is fired after the function has performed its main task. What about
`wp_site_inserted`, `wp_site_updated`, and `wp_site_deleted`? Or something
else?
>
> I was following the examples in `wp_insert_post()` or
`wp_insert_comment()` which use present tense, but I'm not opposed to
another name. I don't like having only the past tense versions there - if
they're the only filter, I'd rather use the function name.
Per today's Slack conversation - let's stick with simple actions that
match the function names. `wp_insert_site`, `wp_update_site`,
`wp_delete_site` (like @flixos90 already had). :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40364#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list