The WordPress API does a great job of exposing many of the WordPress settings via convenient functions but there are a few that are so similar that it can be easy to select the wrong function to use.
Case in point: bloginfo(‘wpurl’) vesus bloginfo(‘url’).
Specifically, bloginfo(‘url’) returns the value for the “Site Address” specified in the WordPress admin panel whereas bloginfo(‘wpurl’) returns the value for the “WordPress Address.”
This is significant because if a user has WordPress installed in a subdirectory then the value is retrieved via bloginfo(‘wpurl’). As such, this function is typically a better option for use in theme development.