Making WordPress.org

Changeset 4031


Ignore:
Timestamp:
09/11/2016 07:36:55 PM (8 years ago)
Author:
ocean90
Message:

Rosetta: Add a Jetpack/Module_Manager to manage available and default Jetpack modules.

See #2003.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-main.php

    r4030 r4031  
    22namespace WordPressdotorg\Rosetta\Site;
    33
     4use WordPressdotorg\Rosetta\Jetpack;
    45use WordPressdotorg\Rosetta\User;
    56use WP_Site;
     
    4647            $user_sync->setup();
    4748        }
     49
     50        $jetpack_module_manager = new Jetpack\Module_Manager( [
     51            'stats',
     52            'videopress',
     53            'contact-form',
     54            'sharedaddy',
     55            'shortcodes',
     56        ] );
     57        $jetpack_module_manager->setup();
    4858    }
    4959}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-team.php

    r4028 r4031  
    22namespace WordPressdotorg\Rosetta\Site;
    33
     4use WordPressdotorg\Rosetta\Jetpack;
    45use WP_Site;
    56
     
    3940     */
    4041    public function register_events() {
    41         // TODO: Implement register_events() method.
     42        $jetpack_module_manager = new Jetpack\Module_Manager( [
     43            'stats',
     44            'markdown',
     45        ] );
     46        $jetpack_module_manager->setup();
    4247    }
    4348}
Note: See TracChangeset for help on using the changeset viewer.