[wp-trac] [WordPress Trac] #63518: get_blog_details( get_all: false ) not working as expected

WordPress Trac noreply at wordpress.org
Tue Jun 3 07:17:48 UTC 2025


#63518: get_blog_details( get_all: false ) not working as expected
--------------------------------+-----------------------------
 Reporter:  apermo              |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 I recently played around with `get_blog_details()` and found that the
 second parameter is not as expected.


 {{{#!php
 <?php
 get_blog_details( 1, true ); // will return the long results.
 get_blog_details( 1, false ); // will also return the long results.

 get_blog_details( 2, false ); // will return the short results.
 get_blog_details( 2, true ); // will return the long results.
 get_blog_details( 2, false ); // will still return the short results.

 }}}


 So if you call it with `$get_all = false` first, it works as expected and
 it seems to cache the short result separately and you can call them in any
 order and how often you want.
 If you call `$get_all = true` first, it will ignore the second parameter
 and will always return the long results.

 It seems to me like the caching in the function is not working properly.

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


More information about the wp-trac mailing list