Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55942, comment 30


Ignore:
Timestamp:
03/11/2023 01:39:42 AM (18 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55942, comment 30

    initial v1  
    66> that would close off scenarios where third party code replaces an option with a value requiring PHP serialization...
    77
    8 Serialization is (just a) DB storage requirement/method. It should happen automatically when needed. When the changes here are implemented all new and updated options and meta values will automatically have data types. If the data type is array or object, the DB output will be unserialized and returned. As data types will be added automatically on saving to the DB, there will be no errors (unless someone "hacks" the valued directly in the database).
     8Serialization is (just a) DB storage requirement/method. It should happen automatically when needed. When the changes here are implemented all new and updated options and meta values will automatically have data types. If the data type is array or object, the DB output will be unserialized and returned. As data types will be added automatically on saving to the DB, there will be no errors (unless someone "hacks" the values directly in the database).