[wp-trac] [WordPress Trac] #14294: get_permalink() calling get_post_permalink() with post object instead of post ID
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 13 05:34:42 UTC 2010
#14294: get_permalink() calling get_post_permalink() with post object instead of
post ID
--------------------------+-------------------------------------------------
Reporter: mikeschinkel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by mikeschinkel):
Egads! Ghosts of programming languages past. My "in hook" fix was
supposed to be:
{{{
$id = (is_numeric($id) ? $id : is_object($id) && isset($id->ID) ? $id->ID
: 0);
}}}
Sorry about that "and" oversight.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14294#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list