Opened 11 years ago
Closed 6 years ago
#34504 closed defect (bug) (wontfix)
get_blogaddress_by_name() does not reflect scheme of the blog
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Networks and Sites | Keywords: | needs-patch has-unit-tests https |
| Focuses: | multisite | Cc: |
Description
Attachments (1)
Change History (8)
#3
@
10 years ago
- Keywords changed from needs-patch, has-unit-tests, https to needs-patch has-unit-tests https
#5
in reply to:
↑ 4
@
10 years ago
Replying to flixos90:
We could make a
WP_Site_Queryto get the site and then use theoriginalURL scheme to return the original scheme.
As jeremyfelt said, the function is only used in wp-signup.php to display the text
'The site you were looking for, %s, does not exist, but you can create it now!'
As the site does not exist yet, its scheme cannot be determined by querying the database for its home URL or site URL. Therefore, this ticket might be a wontfix.
This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
It seems like the only context this is used in is
wp-signup.phpas a way to display what a new site's address would be if it was created. In that case, using the scheme ofnetwork_home_url()may still make sense.I could also see finding a way to deprecate
get_blogaddress_by_name().