Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #53858, comment 38


Ignore:
Timestamp:
08/19/2021 02:27:12 AM (3 years ago)
Author:
jrf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53858, comment 38

    v1 v2  
    77* Stop using the WP Core function altogether and write their own logic to add the HTML attribute.
    88* Conditionally, depending on the WP version and PHP version, use `call_user_func('readonly', $args...)`.
    9 * Polyfill the function when it doesn't exist, but in a separate file, like in the patch here.
     9* Polyfill the new function when it doesn't exist.
    1010
    1111This backport proposal means that plugins/themes can switch to using the new function name outright and that we greatly diminish the risk of burdening end-users with sites going down.