[wp-trac] [WordPress Trac] #9008: add a home_url() function to enforce http/https scheme
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 6 19:40:10 UTC 2010
#9008: add a home_url() function to enforce http/https scheme
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: anonymous
Type: enhancement | Status: new
Priority: high | Milestone: 3.0
Component: Template | Version: 2.7
Severity: major | Keywords: 2nd-opinion
-------------------------------+--------------------------------------------
Comment(by nacin):
Not perfect, but I have attached a quick patch to deprecate
get_option('home') and *bloginfo*('url'). We'd still need to replace all
bloginfo('url') references in core -- there's 41 instances when you
include *bloginfo_rss().
There are ways we can do this to avoid the backtrace, but it's only
running when WP_DEBUG is on so it isn't a big footprint. (This also means
that it won't trigger the deprecated_argument_run hook, which would
normally be triggered even if WP_DEBUG is off.)
And I guess instead of did_action('init') we could just replace the
get_option('home') instance in wp-settings.php with home_url(). Ideas
welcome.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9008#comment:29>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list