Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #62454, comment 5


Ignore:
Timestamp:
11/19/2024 11:16:40 AM (6 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62454, comment 5

    initial v1  
    11Hi there, thanks for the ticket!
    22
    3 This looks similar to the discussions in #17299, #18927, #23767, and #27489 (those tickets are unrelated to this particular function, but they suggest a similar enhancement for other functions). The consensus was that we should not hide warnings caused by developer errors, unless there is a strong reason. It would just make debugging harder.
     3This looks similar to the discussions in #17299, #18927, #23767, #27489, and #48035 (those tickets are unrelated to this particular function, but they suggest a similar enhancement for other functions). The consensus was that we should not hide warnings caused by developer errors, unless there is a strong reason. It would just make debugging harder.
    44
    55If a valid parameter generates a warning, we should certainly fix that. However, in case of an invalid parameter, I think the warning (or an error on PHP 8.0+) is to be expected.