Changeset 11846 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/wporg-profiles-wp-activity-notifier.php
- Timestamp:
- 05/13/2022 06:33:14 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/wporg-profiles-wp-activity-notifier.php
r11845 r11846 29 29 30 30 private function __construct() { 31 require_once WPMU_PLUGIN_DIR . '/pub/profile-helpers.php'; 31 $is_wordcamp = defined( 'IS_WORDCAMP_NETWORK' ) && IS_WORDCAMP_NETWORK; 32 $environment = $is_wordcamp ? get_wordcamp_environment() : wp_get_environment_type(); 33 34 /* 35 * Requests will always fail when in local environments, unless the dev is proxied. Proxied devs could test 36 * locally if they're careful (especially with user IDs), but it's better to test on w.org sandboxes with 37 * test accounts. That prevents real profiles from having test data accidentally added to them. 38 */ 39 if ( 'local' === $environment ) { 40 return; 41 } 42 43 if ( $is_wordcamp ) { 44 require_once WP_CONTENT_DIR . '/mu-plugins-private/wporg-mu-plugins/pub/profile-helpers.php'; 45 } else { 46 require_once WPMU_PLUGIN_DIR . '/pub/profile-helpers.php'; 47 } 32 48 33 49 add_action( 'init', array( $this, 'init' ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)