[wp-trac] [WordPress Trac] #62824: single_month_title() can cause a warning.
WordPress Trac
noreply at wordpress.org
Sun Jan 19 16:03:56 UTC 2025
#62824: single_month_title() can cause a warning.
--------------------------+------------------------------
Reporter: apermo | Owner: audrasjb
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by audrasjb):
* owner: (none) => audrasjb
* status: new => reviewing
Comment:
Thanks for the ticket and the PR.
Maybe it would be more straightforward and performant to directly set a
default value just in case? Like `public function get_month( $month_number
= '01' )`. What do you think?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62824#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list