Making WordPress.org

Changeset 1706


Ignore:
Timestamp:
07/05/2015 08:36:40 PM (11 years ago)
Author:
ocean90
Message:

Rosetta: Register custom roles only for the main site of a locale.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php

    r1426 r1706  
    3939         */
    4040        public function plugins_loaded() {
     41                if ( '/' !== get_blog_details( null, false )->path ) {
     42                        return;
     43                }
     44
    4145                add_filter( 'editable_roles', array( $this, 'editable_roles' ) );
    4246                add_filter( 'manage_users_columns',  array( $this, 'add_roles_column' ) );
Note: See TracChangeset for help on using the changeset viewer.