[wp-trac] Re: [WordPress Trac] #10264: use instanceof instead of
is_a()
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 1 19:58:56 UTC 2009
#10264: use instanceof instead of is_a()
-------------------------+--------------------------------------------------
Reporter: Mittineague | Owner:
Type: enhancement | Status: assigned
Priority: low | Milestone: Future Release
Component: Performance | Version: 2.8
Severity: normal | Keywords: needs-patch
-------------------------+--------------------------------------------------
Comment(by Denis-de-Bernardy):
for that particular one, is_object() might be a good enough shortcut, too.
get_class() won't deal with inheritance. I'm not entirely sure how much we
want to deal with that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10264#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list