Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56434, comment 7


Ignore:
Timestamp:
08/26/2022 07:42:07 AM (3 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56434, comment 7

    initial v1  
    2828  - This will take some time and a couple of contributors to do it correctly.
    29292. We don't throw a `_doing_it_wrong()` on `null`, and simply return an empty string for the sake of BC.
    30   - This is bad for input validation. Essentially, Core hasn't validated the input to a function used for input validation, and Core itself has been passing the wrong type in certain circumstances.
     30  - This is bad for input validation/sanitization. Essentially, Core hasn't validated the input to a function used for input sanitization, and Core itself has been passing the wrong type in certain circumstances.
    3131
    3232I'm curious to hear what others think about the two options above, as well as other options you might have in mind.