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

WordPress Trac noreply at wordpress.org
Thu Feb 10 15:12:44 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 SergeyBiryukov):

 Also noticed this in comment:19:ticket:38266.

 Replying to [comment:2 birgire]:
 > So it looks like either we need to adjust the inline docs or adjust the
 return types.

 I think it makes sense to do the latter here, to adjust the return types
 to match the documented types.

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

More information about the wp-trac mailing list