Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
404: Pass correct
get_site_url
param to avoid infinite loop (#98)
The first param to `get_site_url()` should be a site ID, or `null` for the current site. Passing a string can cause a `switch_to_blog( 0 )` in some circumstances. That breaks SQL queries because the table doesn't exist. The first broken query results in a `wp_die()`, but that leads to more queries which in turn call `wp_die()`. Passing `null` fixes the error while preserving the original intent from #54 (comment).
- Loading branch information