[wp-trac] [WordPress Trac] #31027: Twenty Fifteen: improve site title code
WordPress Trac
noreply at wordpress.org
Fri Jan 16 03:25:09 UTC 2015
#31027: Twenty Fifteen: improve site title code
---------------------------+------------------------------
Reporter: TomasM | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by SergeyBiryukov):
> Another thing, IF statement doesn't need to check:
>
> {{{
> is_front_page() && is_home()
> }}}
>
> because is_front_page is sufficient.
Looking at the [source:tags/4.1/src/wp-
content/themes/twentyten/header.php#L62 similar code in Twenty Ten],
perhaps `is_front_page() || is_home()` was the intention here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31027#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list