Opened 9 years ago
Closed 9 years ago
#35014 closed enhancement (wontfix)
Deprecate bloginfo()
Reported by: | atomicjack | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | General | Keywords: | |
Focuses: | docs | Cc: |
Description
bloginfo() is quite a specific function - in that, it references 'blog'.
WordPress is more than just a blog system, it is a CMS, and as such, the functions should take this into account.
I recommend deprecating bloginfo() and replacing it with a less specifically named function.
Change History (1)
Note: See
TracTickets for help on using
tickets.
There are many functions in WordPress that still reference sites as blogs, like
switch_to_blog()
for example.However, we do not simply deprecate functions because of their naming. We deprecate functions when there are better, more robust solutions to do something.
(get_)bloginfo()
works perfectly fine and is reliable.One of WordPress' principles is that code refactoring should not be done just because we can. See https://make.wordpress.org/core/2011/03/23/code-refactoring/ for more information.