[wp-meta] [Making WordPress.org] #4380: Plugin Directory: Be more flexible with the detected current major WP version

Making WordPress.org noreply at wordpress.org
Thu Apr 11 02:24:55 UTC 2019


#4380: Plugin Directory: Be more flexible with the detected current major WP
version
------------------------------+-----------------------
 Reporter:  Ipstenu           |       Owner:  dd32
     Type:  defect            |      Status:  accepted
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:                    |
------------------------------+-----------------------
Changes (by dd32):

 * owner:  (none) => dd32
 * status:  new => accepted


Comment:

 Yay PHP, or rather, Yay Floats! :)

 This is because `(float)'5.2' > ((float)'5.1'+0.1)` is `true`, in other
 words `(float)'5.2' !== (float)'5.1'+0.1` - even though the human readable
 version are the same when you look at the underlying values you eventually
 come to a 0.000000000000000000000000000000[1-9] value that trips up the
 calculations.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4380#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list