[wp-trac] [WordPress Trac] #24674: WP_Query::is_page() should use stricter comparison

WordPress Trac noreply at wordpress.org
Fri Feb 13 02:12:06 UTC 2015


#24674: WP_Query::is_page() should use stricter comparison
--------------------------+------------------
 Reporter:  clifgriffin   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  Query         |     Version:  2.5
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------

Comment (by nacin):

 Whatever we do here, let's make sure there are some good unit tests so
 someone doesn't break this in the future. :-)

 We should be able to specifically tell the difference between a numeric
 string and a non-numeric string pretty easily.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24674#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list