[wp-trac] [WordPress Trac] #18387: get_blog_id_from_url() has wrong return

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 1 17:40:59 UTC 2012


#18387: get_blog_id_from_url() has wrong return
--------------------------+------------------
 Reporter:  lonnylot      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Multisite     |     Version:  3.0
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by ryan):

 * Register blog-id-cache group as global
 * Introduce clean_blog_cache() so we can run it independently of
 refresh_blog_details() which assumes the blog still exists and
 get_blog_details() can be called.
 * Don't db escape cache keys
 * Return 0 for all failures in get_blog_id_from_url()
 * clean_blog_cache() after dropping tables in wpmu_delete_blog() to make
 sure the cache is for real cleaned.

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


More information about the wp-trac mailing list