[wp-trac] [WordPress Trac] #44908: Unecessary to set post_modified info in the wp_update_post of wp_generate_user_request_key as wp_insert_post handles it already
WordPress Trac
noreply at wordpress.org
Thu Sep 6 21:54:36 UTC 2018
#44908: Unecessary to set post_modified info in the wp_update_post of
wp_generate_user_request_key as wp_insert_post handles it already
-----------------------------+-----------------------------
Reporter: garrett-eclipse | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Privacy | Version: 4.9.6
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Hello,
Was reviewing some code specifically this wp_update_post from the
wp_generate_user_request_key function found here;
https://github.com/WordPress/WordPress/blob/7ee752e40cf47feb2591711efb8074217b6961f2
/wp-includes/user.php#L3515-L3523
In here it specifies the post_modified and post_modified_gmt which appear
to get overwritten in wp_insert_post anyway so can probably be removed.
Cheers
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44908>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list