Changeset 9501
- Timestamp:
- 02/12/2020 04:03:15 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
r9499 r9501 71 71 add_filter( 'jetpack_active_modules', function( $modules ) { 72 72 // Disable Jetpack Search 73 if ( $i = array_search( 'search', $modules ) )73 if ( false !== ( $i = array_search( 'search', $modules ) ) ) { 74 74 unset( $modules[$i] ); 75 } 75 76 76 77 // Disable Jetpack Sitemaps on Rosetta sites. 77 78 if ( !empty( $GLOBALS['rosetta'] ) ) { 78 if ( $i = array_search( 'sitemaps', $modules) ) {79 if ( false !== ( $i = array_search( 'sitemaps', $modules ) ) ) { 79 80 unset( $modules[$i] ); 80 81 }
Note: See TracChangeset
for help on using the changeset viewer.