Make WordPress Core

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


Ignore:
Timestamp:
09/06/2021 10:46:36 AM (3 years ago)
Author:
jrf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53858, comment 42

    initial v1  
    33There is a PR open against PHP core now to reduce `readonly` from "full keyword" to (limited) "contextual keyword", which would hopefully avoid any white screens of death: https://github.com/php/php-src/pull/7468
    44
    5 I still think we need to strongly encourage plugins/themes to move to using the `wp_readyonly()` function as having a function name which clashes with a PHP reserved keyword is never a good idea, but the impact on end-users for slow adopters amongst plugins/themes should be a whole lot less if the upstream change gets accepted.
     5I still think we need to strongly encourage plugins/themes to move to using the `wp_readonly()` function as having a function name which clashes with a PHP reserved keyword is never a good idea, but the impact on end-users for slow adopters amongst plugins/themes should be a whole lot less if the upstream change gets accepted.