Automattic / vip-scanner

Deprecated: Scan all sorts of themes and files and things! Use PHPCS and the VIP coding standards instead
https://automattic.com
140 stars 51 forks source link

Flag calling home_url() before init has fired #151

Open nickdaugherty opened 10 years ago

nickdaugherty commented 10 years ago

When using domain mapping, home_url() will not return the mapped domain before init has fired, so any calls before that will give unexpected results.

These might be worthy of blocker status, as they can lead to some pretty broken situations depending on how it's used.

nickdaugherty commented 9 years ago

This also includes any functions that depend on the value of home_url(), such as url_to_postid and wpcom_vip_url_to_postid().