[wp-trac] [WordPress Trac] #48936: Remove mysql2date() usage from core

WordPress Trac noreply at wordpress.org
Fri Feb 24 14:21:29 UTC 2023


#48936: Remove mysql2date() usage from core
------------------------------------------+------------------------------
 Reporter:  Rarst                         |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Date/Time                     |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by coquardcyr):

 Inside the core, we have the following usages from the function:
 - [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 content/themes/twentytwenty/classes/class-twentytwenty-walker-
 page.php#L153 Line 150] of {{{ src/wp-content/themes/twentytwenty/classes
 /class-twentytwenty-walker-page.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/5fd8bed76b2d102ce51f38245908fd3b6cc13441/src/wp-
 admin/includes/class-wp-ms-users-list-table.php#L346 346] of {{{ src/wp-
 admin/includes/class-wp-ms-users-list-table.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/5fd8bed76b2d102ce51f38245908fd3b6cc13441/src/wp-admin/edit-
 form-advanced.php#L248 248], [https://github.com/WordPress/wordpress-
 develop/blob/5fd8bed76b2d102ce51f38245908fd3b6cc13441/src/wp-admin/edit-
 form-advanced.php#L627 627] and [https://github.com/WordPress/wordpress-
 develop/blob/5fd8bed76b2d102ce51f38245908fd3b6cc13441/src/wp-admin/edit-
 form-advanced.php#L630 630] of {{{ src/wp-admin/edit-form-advanced.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/1111d2b9e6d71bb5506e18940518cc96adbbdb97/src/wp-includes
 /feed-atom-comments.php#L103 103] and [https://github.com/WordPress
 /wordpress-develop/blob/1111d2b9e6d71bb5506e18940518cc96adbbdb97/src/wp-
 includes/feed-atom-comments.php#L104 104] from {{{ src/wp-includes/feed-
 atom-comments.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/d088e31c73456179502c9bd5354fc43c6267bd7a/src/wp-includes
 /feed-rdf.php#L79 Line 79] from {{{ src/wp-includes/feed-rdf.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/d088e31c73456179502c9bd5354fc43c6267bd7a/src/wp-includes
 /feed-rss2.php#L96 Line 96] from {{{ src/wp-includes/feed-rss2.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/08160032efc23c6dd98e53eafcd2bdac6d64f901/src/wp-includes
 /feed-rss2-comments.php#L96 Line 96] {{{ src/wp-includes/feed-
 rss2-comments.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/6a9e92dc76e397737cdf5f2322c2540eacaf0c45/src/wp-admin/edit-
 form-blocks.php#L220 Line 220] of {{{ src/wp-admin/edit-form-blocks.php
 }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/6ae5afcfaf27ef832abf10665ef9b19731f62ac7/src/wp-
 admin/includes/template.php#L326 326] to [https://github.com/WordPress
 /wordpress-develop/blob/6ae5afcfaf27ef832abf10665ef9b19731f62ac7/src/wp-
 admin/includes/template.php#L331 331] of {{{ src/wp-
 admin/includes/template.php  }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-includes
 /class-wp.php#L469 469], [https://github.com/WordPress/wordpress-
 develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-includes
 /class-wp.php#L470 470] and [https://github.com/WordPress/wordpress-
 develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-includes
 /class-wp.php#L477 477] of {{{ src/wp-includes/class-wp.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-includes
 /class-walker-page.php#L217 Line 217] of {{{ src/wp-includes/class-walker-
 page.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-
 admin/includes/class-wp-ms-sites-list-table.php#L479 479] and
 [https://github.com/WordPress/wordpress-
 develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-
 admin/includes/class-wp-ms-sites-list-table.php#L503 503] of {{{  src/wp-
 admin/includes/class-wp-ms-sites-list-table.php  }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/ee09cadd94d5d80a8a7c866f0a0bd0fcb99b9c37/src/wp-
 admin/includes/export.php#L584 Line 583] of {{{  src/wp-
 admin/includes/export.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/31e3936075fb5fe8275c65b056164f75141bc806/src/wp-includes/ms-
 functions.php#L538 538] and [https://github.com/WordPress/wordpress-
 develop/blob/31e3936075fb5fe8275c65b056164f75141bc806/src/wp-includes/ms-
 functions.php#L551 551] of {{{  src/wp-includes/ms-functions.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/1f0fe126a09b47f8b9e44eb3e45c3fa3f4f6abd6/src/wp-
 admin/includes/ajax-actions.php#L2257 2257] and
 [https://github.com/WordPress/wordpress-
 develop/blob/1f0fe126a09b47f8b9e44eb3e45c3fa3f4f6abd6/src/wp-
 admin/includes/ajax-actions.php#L2850 2850] {{{  src/wp-admin/includes
 /ajax-actions.php  }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/c2a4cce173c24503f1556b05d642ceb4a1fe2f6e/src/wp-includes
 /class-wp-customize-manager.php#L2673 2673] and
 [https://github.com/WordPress/wordpress-
 develop/blob/c2a4cce173c24503f1556b05d642ceb4a1fe2f6e/src/wp-includes
 /class-wp-customize-manager.php#L2689 2689] of {{{  src/wp-includes/class-
 wp-customize-manager.php  }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/31e3936075fb5fe8275c65b056164f75141bc806/src/wp-includes
 /comment-template.php#L590 590] and [https://github.com/WordPress
 /wordpress-develop/blob/31e3936075fb5fe8275c65b056164f75141bc806/src/wp-
 includes/comment-template.php#L1086 1086] of {{{ src/wp-includes/comment-
 template.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/31e3936075fb5fe8275c65b056164f75141bc806/src/wp-includes
 /class-wp-editor.php Line 1813] of {{{  src/wp-includes/class-wp-
 editor.php  }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/31e3936075fb5fe8275c65b056164f75141bc806/src/wp-
 includes/comment.php#L900 900] and [https://github.com/WordPress
 /wordpress-develop/blob/31e3936075fb5fe8275c65b056164f75141bc806/src/wp-
 includes/comment.php#L901 901] of {{{ src/wp-includes/comment.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/1f0fe126a09b47f8b9e44eb3e45c3fa3f4f6abd6/src/wp-includes
 /class-wp-xmlrpc-server.php#L880 880] and [https://github.com/WordPress
 /wordpress-develop/blob/1f0fe126a09b47f8b9e44eb3e45c3fa3f4f6abd6/src/wp-
 includes/class-wp-xmlrpc-server.php#L892 892] of {{{ src/wp-includes
 /class-wp-xmlrpc-server.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/6ae5afcfaf27ef832abf10665ef9b19731f62ac7/src/wp-includes
 /class-wp-query.php#L4717 4717] and [https://github.com/WordPress
 /wordpress-develop/blob/6ae5afcfaf27ef832abf10665ef9b19731f62ac7/src/wp-
 includes/class-wp-query.php#L4718 4718] of {{{  src/wp-includes/class-wp-
 query.php  }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/46ba5721590de7d1d938fdeb7960f4bf0b55eaa9/src/wp-includes
 /link-template.php#L2049 2049] and [https://github.com/WordPress
 /wordpress-develop/blob/46ba5721590de7d1d938fdeb7960f4bf0b55eaa9/src/wp-
 includes/link-template.php#L2328 2328] of {{{ src/wp-includes/link-
 template.php }}}
 - Lines [https://github.com/WordPress/wordpress-
 develop/blob/6ae5afcfaf27ef832abf10665ef9b19731f62ac7/src/wp-includes
 /general-template.php#L2119 2119] and [https://github.com/WordPress
 /wordpress-develop/blob/6ae5afcfaf27ef832abf10665ef9b19731f62ac7/src/wp-
 includes/general-template.php#L2500 2500] of {{{ src/wp-includes/general-
 template.php }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/6ae5afcfaf27ef832abf10665ef9b19731f62ac7/src/wp-
 admin/includes/media.php#L1695 Line 1695] of {{{ src/wp-
 admin/includes/media.php }}}
 -[https://github.com/WordPress/wordpress-
 develop/blob/bd4d4af7849320678c7617e7ca1aed6cf87f1406/src/wp-
 admin/includes/upgrade.php#L1247 Line 1274] of {{{  src/wp-
 admin/includes/upgrade.php }}}
 -[https://github.com/WordPress/wordpress-
 develop/blob/0cb8475c0d07d23893b1d73d755eda5f12024585/src/wp-
 includes/functions.php#L7418 Line 7418] of {{{  src/wp-
 includes/functions.php  }}}
 - [https://github.com/WordPress/wordpress-
 develop/blob/f4de27281810fd1c7b49a6afbbf9738c9d2c54ef/src/wp-
 includes/media.php#L4157 Line 4157] of {{{ src/wp-includes/media.php }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48936#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list