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

WordPress Trac noreply at wordpress.org
Thu Jul 13 00:27:20 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                                           |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56223" 56223]:
 {{{
 #!CommitTicketReference repository="" revision="56223"
 General: Introduce `all` development mode.

 Introduce the development mode `all` as a a cover-all mode for the
 existing `theme`, `plugin` and `core` development modes. Developers can
 use the `all` mode if they are developing both themes and plugins, for
 example.

 Introduce the utility function `wp_in_development_mode()` allowing
 developers to detect the mode via a parameter. If the development mode is
 set to `all` this function will always return `true`. If the development
 mode is specific then only the chosen mode will return `true`.

 Follow up to [56079,56042].

 Props flixos90.
 Fixes #57487.
 }}}

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


More information about the wp-trac mailing list