Making WordPress.org


Ignore:
Timestamp:
06/16/2015 02:13:02 PM (10 years ago)
Author:
iandunn
Message:

Jetpack Tweaks: Consolidate our Jetpack tweaks into a single mu-plugin.

See #1073

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r1514 r1663  
    2121}
    2222add_filter( 'close_comments_for_post_types', 'wcorg_close_comments_for_post_types' );
    23 
    24 /*
    25  * Determine which Jetpack modules should be automatically activated when new sites are created
    26  */
    27 function wcorg_default_jetpack_modules( $modules ) {
    28     $modules = array_diff( $modules, array( 'widget-visibility' ) );
    29     array_push( $modules, 'contact-form', 'shortcodes', 'custom-css', 'subscriptions' );
    30 
    31     return $modules;
    32 }
    33 add_filter( 'jetpack_get_default_modules', 'wcorg_default_jetpack_modules' );
    3423
    3524/*
Note: See TracChangeset for help on using the changeset viewer.