[wp-trac] [WordPress Trac] #58986: TypeError: Unsupported operand types: string * int *

WordPress Trac noreply at wordpress.org
Fri Aug 25 17:57:10 UTC 2023


#58986: TypeError: Unsupported operand types: string * int *
-------------------------------------+-------------------------------------
 Reporter:  nurielmeni               |       Owner:  (none)
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  6.4
Component:  Date/Time                |     Version:  6.2.2
 Severity:  critical                 |  Resolution:
 Keywords:  has-patch has-unit-      |     Focuses:  rest-api, php-
  tests                              |  compatibility
-------------------------------------+-------------------------------------
Changes (by rleeson):

 * keywords:  has-patch => has-patch has-unit-tests


Comment:

 - New method added `current_gmt_offset` which reads the offset and type
 casts to float, with a default of 0.
 - Replaced all Core instances of `get_option( 'gmt_offset' )` with the
 function to guarantee a float in every instance, avoiding type cast
 issues/errors.
 - Added Unit Tests to the date and datetime groups
 - Also addresses ticket #[https://core.trac.wordpress.org/ticket/57035
 57035].

 This patch is [https://core.trac.wordpress.org/ticket/57035 here].

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


More information about the wp-trac mailing list