[wp-trac] [WordPress Trac] #57269: Get site URL from config instead of the database (was: In multisite, get site URL from config instead of the database)

WordPress Trac noreply at wordpress.org
Mon Dec 5 12:05:25 UTC 2022


#57269: Get site URL from config instead of the database
-------------------------------+------------------------------
 Reporter:  mhmdyassin07       |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Upgrade/Install    |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * focuses:  multisite =>


Comment:

 Replying to [comment:2 mhmdyassin07]:
 > But I need to make it in a normal site not a multisite

 Thanks for the follow-up! Renaming the ticket accordingly.

 In that case, this sounds like the issue previously reported in #23487 and
 #29794.

 While the `siteurl` database option is indeed required for the
 `is_blog_installed()` function to work, the `WP_HOME` and `WP_SITEURL`
 constants do override the respective database options, so it's not quite
 clear to me what is the exact issue or suggestion here.

 For easier migrations or creating a test environment, a snippet like in
 comment:2:ticket:36737 for replacing internal links in content on the fly
 might be helpful.

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


More information about the wp-trac mailing list