Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60299, comment 20


Ignore:
Timestamp:
09/30/2024 09:33:20 PM (18 months ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60299, comment 20

    initial v1  
    1 > a comparison against the current values in the database prior to running an update query
    2 
    3 Reviewing this again, I wonder if we can use a different approach for the fix. My concern with altering the `use_ssl` meta value is the many other plugins already using the field and possibly expecting the existing type,
    4 
    5 > because the DB returns a string value ('1' or '0') while the meta_value is set to a boolean value by default the comparison always fails causing a write when not needed.
    6 
    7 Could we cast the values to the same type before/when comparing them?
     1Working on a test that more cleanly captures the db write.