Make WordPress Core

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


Ignore:
Timestamp:
08/19/2021 02:26:17 AM (5 years ago)
Author:
jrf

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53858, comment 38

    initial v1  
    66There are various solutions plugins/themes can use if we don't backport:
    77* Stop using the WP Core function altogether and write their own logic to add the HTML attribute.
    8 * Conditionally, depending on the WP version, use `call_user_func('readonly', $args...)`.
     8* Conditionally, depending on the WP version and PHP version, use `call_user_func('readonly', $args...)`.
    99* Polyfill the function when it doesn't exist, but in a separate file, like in the patch here.
    1010