#11652 closed enhancement (fixed)
Use _deprecated_argument() on get_bloginfo()
Reported by: | nacin | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch |
Focuses: | Cc: |
Description
_deprecated_argument() (#11386) is flexible enough to be used to mark deprecated values of function arguments, not just arguments themselves.
We should use it to mark get_bloginfo('siteurl') and get_bloginfo('home') as deprecated. Patch also changes any uses of those in core to 'url'.
This ticket and patch assumes that the final patch of #11386 is committed first, which simplifies _deprecated_argument() a bit and makes the function a bit more flexible.
(Also related, #10805, marking user levels as deprecated.)
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Forgot to mention, patch does not update an instance of get_bloginfo('siteurl') that is addressed in #11607. That would need to be committed before or with this, otherwise we'll be triggering deprecated errors on every blog (unless a default filter is removed).