`get_current_blog_id()` is more appropriate for determining the ID of the current site in most cases. This eliminates the need for the global `$wpdb` in several functions and is better than the implicit global used in admin pages. Props bnap00, spacedmonkey. Fixes #41684. Built from https://develop.svn.wordpress.org/trunk@41661 git-svn-id: http://core.svn.wordpress.org/trunk@41495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
4.6 KiB
4.6 KiB