[wp-trac] [WordPress Trac] #57487: Add support for "development mode"

WordPress Trac noreply at wordpress.org
Tue Jun 27 16:11:59 UTC 2023


#57487: Add support for "development mode"
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  flixos90
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------

Comment (by knutsp):

 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).

 Array 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.

 When 7.0 is minimum, core may start setting and using it as an array.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57487#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list