Timeline for Why is there both a save_post and wp_insert_post action?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:37 | history | edited | CommunityBot |
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
|
|
Jun 27, 2016 at 19:41 | vote | accept | Tim Malone | ||
Jun 27, 2016 at 4:27 | history | tweeted | twitter.com/StackWordPress/status/747285213563097088 | ||
Jun 26, 2016 at 23:38 | answer | added | John P Bloch | timeline score: 7 | |
Jun 26, 2016 at 23:38 | comment | added | Tim Malone | @GaryJ That's a reasonable explanation. In which case, assuming save_post was added first, it couldn't be removed for backwards compat reasons. Or maybe save_post was the old name of the function... | |
Jun 26, 2016 at 23:36 | comment | added | Tim Malone | @toscho I've added both your comments to the post. | |
Jun 26, 2016 at 23:35 | history | edited | Tim Malone | CC BY-SA 3.0 |
Add links to source + additional digging pointed out by toscho
|
Jun 26, 2016 at 23:31 | comment | added | fuxia♦ |
@JMau Both action are only called in one other place: wp_publish_post() . And there, the same redundancy exists.
|
|
Jun 26, 2016 at 23:18 | comment | added | GaryJ |
Perhaps wp_insert_post was added later as a way to make hook names within functions guessable?
|
|
Jun 26, 2016 at 22:45 | comment | added | JMau | Must be a matter of meaning, did you check the amount of occurrences ? I mean is there only one place for both in core files ? | |
Jun 26, 2016 at 21:31 | comment | added | fuxia♦ | Weird. Seems to be impossible to find anything on trac or in the repo. The oldest tracked version of that file had these actions already. | |
Jun 26, 2016 at 21:08 | history | asked | Tim Malone | CC BY-SA 3.0 |