Opened 12 years ago
Closed 12 years ago
#30313 closed defect (bug) (invalid)
get_blog_details gets Fatal error
| Reported by: | spacedmonkey | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Networks and Sites | Version: | 4.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | multisite |
Description
When calling the get_blog_details function from sunrise.php, it gives a Fatal error.
Fatal error: Call to undefined function untrailingslashit() in /htdocs/wp-includes/option.php on line 110
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is actually expected behavior.
sunrise.phploads very early in the boot process as a way to allow the routing of various requests or for various tasks to be performed before WordPress loads a network or a site.get_site_by_path()is available (seems-load.php), and that may help a bit. Otherwise look at performing a manual query on the blogs table.