[wp-trac] [WordPress Trac] #15773: Replace $is_singular with is_singular()

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 14 14:23:22 UTC 2011


#15773: Replace $is_singular with is_singular()
----------------------------+-----------------------------
 Reporter:  scribu          |       Owner:  markjaquith
     Type:  enhancement     |      Status:  reviewing
 Priority:  normal          |   Milestone:  Future Release
Component:  Query           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  php5 has-patch  |
----------------------------+-----------------------------
Changes (by markjaquith):

 * owner:   => markjaquith
 * status:  new => reviewing
 * milestone:  Awaiting Review => Future Release


Comment:

 Once we move to PHP 5, we could leave {{{$is_singular}}} undefined and use
 a magic method ( {{{__get()}}} ) to calculate that {{{ $is_post ||
 $is_page || $is_attachment }}} logic, and without deprecating anything. Or
 rather, we could discuss it, at least.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15773#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list