Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #21989, comment 32


Ignore:
Timestamp:
11/29/2022 12:29:44 AM (19 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21989, comment 32

    v1 v2  
    99That way, if the value for the option has already been sanitized by the time it reaches `add_option()`, skip sanitizing it again.
    1010
    11 [https://gist.github.com/costdev/fdb4f8669fe204cce6ce9ffc28b4fd0b Here's a plugin] with a basic test.
     11[https://gist.github.com/costdev/fdb4f8669fe204cce6ce9ffc28b4fd0b Here's a plugin] with a basic test. The value is `a_string`, and sanitizing should append `_1`.
    1212
    1313Without the above change: