[wp-trac] [WordPress Trac] #21432: Deprecate *_blog_option()

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 11 21:25:48 UTC 2012


#21432: Deprecate *_blog_option()
--------------------------+-----------------------
 Reporter:  ryan          |       Owner:  ryan
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.5
Component:  General       |     Version:  3.4.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------
Changes (by nacin):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 ryan and I would still lean toward deprecating _blog_option(). We'd just
 have to leave them in ms-blogs.php, which is fine with me.

 Deprecating them emphasizes that they are not more performant than
 switch_to_blog() (which they were, hypothetically, under earlier versions,
 albeit with caching issues), and that switch_to_blog() should be used if
 you have more than one operation.

 I'm willing to suggest a deprecation of current_user_can_for_blog() as
 well, for the same reasons.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21432#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list