[wp-trac] [WordPress Trac] #41684: Replace $wpdb->blogid with get_current_blog_id()

WordPress Trac noreply at wordpress.org
Mon Oct 2 01:21:09 UTC 2017


#41684: Replace $wpdb->blogid with get_current_blog_id()
--------------------------------------+-------------------------
 Reporter:  spacedmonkey              |       Owner:  jeremyfelt
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  4.9
Component:  Networks and Sites        |     Version:  3.1
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  multisite
--------------------------------------+-------------------------

Comment (by jeremyfelt):

 In [attachment:41684.3.diff]:

 * Fix the order of the arguments passed to `$wpdb-prepare()` in the 3rd
 query.
 * In `upgrade_280()`, call `refresh_blog_details()` without an argument,
 which will refresh the current blog anyway.
 * Move `$site_id = get_current_blog_id()` into conditional blocks where
 appropriate.

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


More information about the wp-trac mailing list