Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#36821 closed defect (bug) (invalid)

Domain name mismatch in wordpress admin page

Reported by: tools4toni's profile tools4toni Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords:
Focuses: Cc:


Hello Team,

We have renamed the domain "" TO "" months ago due to some issues. Now the domain "" is loading fine without any issues.

The domain has some issues in wordpress admin page. The old domain name "" is being displayed in the location :

Please refer the screenshot in the URL:

However, the exact domain name "" mentioned under wordpress multi-site settings in wordpress configuration file.

# cat wp-config.php |grep
define('DOMAIN_CURRENT_SITE', '');

Please check the issue and why the wrong domain name in being displayed in wordpress admin page. How can I get it corrected?


Attachments (1)

screen.jpeg (31.7 KB) - added by tools4toni 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago


#1 follow-up: @swissspidy
8 years ago

  • Component changed from General to Networks and Sites
  • Focuses multisite added

#2 in reply to: ↑ 1 @tools4toni
8 years ago

Replying to swissspidy:

Hello Pascal,

Thank you for your help. Could you please explain me clearly that how can I fix the issue.


#3 @tools4toni
8 years ago

Hello Pascal/Team,

Is there any update for us.


#4 @swissspidy
8 years ago

  • Focuses multisite removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hey there

Welcome to trac and thanks for creating this ticket!

The value you get there in the suggested config for DOMAIN_CURRENT_SITE is the output of get_clean_basedomain().

This function gets the values from two places:

  • The multisite sites database table if it's an existing network (see network_domain_check())
  • or else from the siteurl option

To fix this:

  • Check your network dashboard for sites with the wrong domain
  • Check your site URL and home URL settings under Settings -> General
  • Check if the WP_HOME and WP_SITEURL constants are defined in your wp-config.php file

That should help you finding the culprit.

In any case, WordPress only shows you what has been configured, so it's not really a bug. I'm therefore closing this ticket. If you need further help, please check out the Multisite support forums, which are more appropriate for this kind of questions.

Note: See TracTickets for help on using tickets.