[wp-trac] [WordPress Trac] #35014: Deprecate bloginfo()

WordPress Trac noreply at wordpress.org
Sat Dec 12 10:58:36 UTC 2015


#35014: Deprecate bloginfo()
-------------------------+----------------------
 Reporter:  atomicjack   |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |     Focuses:  docs
-------------------------+----------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35014#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list