[wp-trac] [WordPress Trac] #40682: get_current_blog_id() and get_current_network_id() are loaded before absint()

WordPress Trac noreply at wordpress.org
Sat May 6 06:41:05 UTC 2017


#40682: get_current_blog_id() and get_current_network_id() are loaded before
absint()
--------------------------------+-----------------------------
 Reporter:  wonderboymusic      |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  3.5
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+-----------------------------
 In r21484, these functions were moved to `wp-includes/load.php`.
 Regardless of when they are *supposed* to be called, they are available to
 be called by cache plugins before `absint()` exists in the ether. If
 caching plugins are indeed accessing `global $blog_id` this early, seems
 like a race condition somewhere.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40682>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list