[wp-trac] [WordPress Trac] #38645: Improve roles reinit when switching between sites

WordPress Trac noreply at wordpress.org
Thu Nov 3 18:50:35 UTC 2016


#38645: Improve roles reinit when switching between sites
-------------------------------------------+------------------------------
 Reporter:  johnjamesjacoby                |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Role/Capability                |     Version:  trunk
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch needs-testing early  |     Focuses:  multisite
-------------------------------------------+------------------------------

Comment (by nerrad):

 I like this, I think it provides a clear way for client code to "properly"
 reset the `WP_Roles` instance if necessary.  The only suggestion I would
 have is to rename the `for_blog` method to `reset_for_blog` or
 `set_for_blog` or `init_for_blog`.  I think just `for_blog` is a bit
 ambiguous about the method purpose.  However, I understand if for
 consistency sake with other places this similar naming schema is used you
 keep it as is.

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


More information about the wp-trac mailing list