[wp-trac] [WordPress Trac] #44461: inconsistent type for global $blog_id

WordPress Trac noreply at wordpress.org
Tue Jun 26 09:55:46 UTC 2018


#44461: inconsistent type for global $blog_id
-------------------------------+------------------------------
 Reporter:  jmlapam            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  4.9.6
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  multisite
-------------------------------+------------------------------
Changes (by subrataemfluence):

 * keywords:   => reporter-feedback
 * focuses:   => multisite


Comment:

 I tested by `echo`-ing blog_id in both single and multisite. Both cases it
 returned me integer.

 On single site `get_current_blog_id()` returned 1, and the same is 5 when
 I did it on a multisite environment.


 {{{
 echo get_current_blog_id();
 }}}


 If this is not correct please let me know the exact steps for reproducing
 the issue.

 Thank you!

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


More information about the wp-trac mailing list