Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #47058, comment 15


Ignore:
Timestamp:
09/11/2020 12:09:38 AM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47058, comment 15

    initial v1  
    11Looking at [attachment:"47058.diff"], I'm not sure we should check for the `localhost` URL specifically, as a local test site can have pretty much any URL, e.g. `http://develop.wordpress.test/`.
    22
    3 Just checking for `in_array( wp_environment_type(), array( 'development', 'local' ), true )` seems enough.
     3Just checking for `in_array( wp_get_environment_type(), array( 'development', 'local' ), true )` seems enough.