Changeset 9499 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 02/12/2020 03:54:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r9488 r9499 70 70 71 71 add_filter( 'jetpack_active_modules', function( $modules ) { 72 // Disable Jetpack Search 72 73 if ( $i = array_search( 'search', $modules ) ) 73 74 unset( $modules[$i] ); 75 76 // Disable Jetpack Sitemaps on Rosetta sites. 77 if ( !empty( $GLOBALS['rosetta'] ) ) { 78 if ( $i = array_search( 'sitemaps', $modules ) ) { 79 unset( $modules[$i] ); 80 } 81 } 82 74 83 return $modules; 75 84 } );
Note: See TracChangeset
for help on using the changeset viewer.