Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57487, comment 36


Ignore:
Timestamp:
06/27/2023 04:12:40 PM (19 months ago)
Author:
knutsp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57487, comment 36

    initial v1  
    1 This should be a string or an array of "modes", `wp_development_mode()` should be `wp_development_mode( $mode = null )` and return array|bool (array whan argument $mode is null, bool otherwise).
     1This should be a string or an array of "modes", `wp_development_mode()` should be `wp_development_mode( $mode = null )` and return array|bool (array when argument $mode is null, bool otherwise).
    22
    33Array constants can be set with const from PHP 5.6. From PHP 7 array constants can also be defined runtime. Let us set this as an array from the beginning, even if core will only define and use a string for 6.3.