mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 22:54:36 +00:00
Remove usage of `mysql2date` in `generate_postdata`. `mysql2date` has a performance overhead, as it creates a `DateTimeZone` object each time it is called. Use a simple sub string function to generate the values needed for the `currentmonth` and `currentday` global variables. Props spacedmonkey, Rarst, SergeyBiryukov, flixos90. Fixes #57683. git-svn-id: https://develop.svn.wordpress.org/trunk@55558 602fd350-edb4-49c9-b593-d223f7449a82
147 KiB
147 KiB