[wp-trac] [WordPress Trac] #39808: My Sites broken in 4.7.2

WordPress Trac noreply at wordpress.org
Tue Feb 7 21:56:35 UTC 2017


#39808: My Sites broken in 4.7.2
--------------------------+-----------------------------
 Reporter:  earl.fogel    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.7.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After upgrading to 4.7.2, My Sites shows an error:

   You must be a member of at least one site to use this page.

 This happens for both regular users and administrators.

 I've fixed it for now by changing one line of code:

 diff wp-admin/my-sites.php.orig wp-admin/my-sites.php
 20c20
 < $blogs = get_blogs_of_user( $current_user->ID );
 ---
 > $blogs = get_blogs_of_user( $current_user->ID, 1 );

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


More information about the wp-trac mailing list