[wp-trac] [WordPress Trac] #31521: wp_title if archive of year w/o permalink fires php notice in locale.php
WordPress Trac
noreply at wordpress.org
Fri Sep 1 13:33:30 UTC 2017
#31521: wp_title if archive of year w/o permalink fires php notice in locale.php
----------------------------------------+-----------------------------
Reporter: michelwppi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 4.1.1
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: template
----------------------------------------+-----------------------------
Comment (by davidmosterd):
I was discussing with @herregroen that we could also just move the
```$wp_locale->get_month( $my_month )``` check to the conditional echo.
That would minimize the adjustment to the code and solve the issue as
well. Like so:
```$title = $my_year . ( $my_month ? $t_sep . $wp_locale->get_month(
$my_month ) : '' ) . ( $my_day ? $t_sep . $my_day : '' );```
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31521#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list