[wp-trac] [WordPress Trac] #11592: the_author() always returns a value when it only should for back compat
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 26 01:32:06 UTC 2009
#11592: the_author() always returns a value when it only should for back compat
--------------------------+-------------------------------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Template | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by nacin):
Replying to [comment:2 prettyboymp]:
> I prefer the return value to always be there. It allows you to easily
use the_author() directly within an if statement.
No other template tag functions this way, and it is an unintended bug
caused by faulty implementation of backwards compat code.
Can you provide an example? That will help a lot here.
Perhaps then provide an example of a template tag that does not return +
echo at once, such as the_title().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11592#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list