[wp-trac] [WordPress Trac] #55086: Different URLs according to environment type with filters to work smoothly in all envs without replacement in the database

WordPress Trac noreply at wordpress.org
Sat Feb 5 08:05:54 UTC 2022


#55086: Different URLs according to environment type with filters to work smoothly
in all envs without replacement in the database
-----------------------------+-----------------------------
 Reporter:  oglekler         |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Add different URLs (WP_HOME, WP_SITEURL) for different environment types
 and filter query results (the_content etc) according to env type.

 It can allow to build the site using production URLs but filter the
 content according to the current environment - dev or stage and work with
 the site without a need to replace URLs while moving from env to env.

 This will ease regular deployments and help avoid mistakes when on
 production some links are still pointing to the dev or stage environment.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55086>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list