[wp-trac] [WordPress Trac] #43372: $wp_query->max_num_pages return value as float

WordPress Trac noreply at wordpress.org
Thu Feb 10 15:00:58 UTC 2022

#43372: $wp_query->max_num_pages return value as float
 Reporter:  ironghost63   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  4.9.4
 Severity:  trivial       |  Resolution:
 Keywords:                |     Focuses:

Comment (by johnbillion):

 I noticed this while working on #47280. All the tests use `assertEquals`
 instead of `assertSame` for this reason. The property is indeed documented
 as an int but is a float.

Ticket URL: <https://core.trac.wordpress.org/ticket/43372#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list