[wp-trac] [WordPress Trac] #25005: Notice using get_sample_permalink()
WordPress Trac
noreply at wordpress.org
Sat Aug 10 09:18:23 UTC 2013
#25005: Notice using get_sample_permalink()
------------------------------+------------------
Reporter: juliobox | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.7
Component: Warnings/Notices | Version: 2.5
Severity: minor | Resolution:
Keywords: needs-patch |
------------------------------+------------------
Comment (by markoheijnen):
$post is enough. Otherwise get_post() should be checked what it will
return. That is also why is_a() isn't needed. Also if it was needed
{{{$post instanceof WP_Post}}} would be faster.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25005#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list