#11652 closed enhancement (fixed)
Use _deprecated_argument() on get_bloginfo()
| Reported by: | nacin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Inline Docs | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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).