Opened 10 years ago
Closed 10 years ago
#38348 closed enhancement (fixed)
Replace get_blog_details() usage in wp-admin/my-sites.php with get_site()
| Reported by: | flixos90 | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Networks and Sites | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
Description
See #37102
Attachments (1)
Change History (4)
#1
@
10 years ago
- Keywords has-patch added; needs-patch removed
In 38348.diff Replaced get_blog_details() with get_site() in wp-admin/my-sites.php
#2
@
10 years ago
- Milestone Awaiting Review → 4.7
- Owner set to
- Status new → reviewing
$site_id is added as a global in ms-settings.php (unfortunately), so I'm a little wary of reassigning it here just for the purpose of calling get_site() just in case someone is relying it.
Let's stick to the existing format and pass (int) $_POST['primary_blog']; directly to get_site().
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Replaced get_blog_details() with get_site() in wp-admin/my-sites.php