[wp-trac] Re: [WordPress Trac] #4721: Password-Protected Post
Delivers WAI-Unfriendly Code
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 7 11:49:21 GMT 2007
#4721: Password-Protected Post Delivers WAI-Unfriendly Code
-----------------------+----------------------------------------------------
Reporter: cmarshall | Owner: Nazgul
Type: defect | Status: assigned
Priority: normal | Milestone: 2.3
Component: Template | Version: 2.2.2
Severity: minor | Resolution:
Keywords: has-patch |
-----------------------+----------------------------------------------------
Comment (by westi):
Replying to [comment:1 Nazgul]:
> Patch adds a unique id to the label based on the given post id.
> It uses a random value if no post id is given for backwards
compatibility.
Interesting patch.
Could we not use the global $ID if one is not passed and assume we are in
"the loop"?
Having to put all that conditional code in the template looks a bit bad as
well - but I guess that is something for another ticket ;-)
--
Ticket URL: <http://trac.wordpress.org/ticket/4721#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list