WordPress.org

Making WordPress.org

Changeset 6507


Ignore:
Timestamp:
02/01/2018 08:01:13 PM (20 months ago)
Author:
obenland
Message:

Rosetta: Enable Jetpack subscriptions by default.

See #727.

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/jetpack/class-module-manager.php

    r4031 r6507  
    3737
    3838        if ( $this->auto_activate_modules ) {
    39             add_filter( 'jetpack_get_default_modules', [ $this, 'filter_default_modules' ], 10, 0 );
     39            add_filter( 'pre_option_jetpack_active_modules', [ $this, 'filter_default_modules' ], 10, 0 );
    4040        }
    4141    }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-main.php

    r5230 r6507  
    7878            'sharedaddy',
    7979            'shortcodes',
     80            'subscriptions',
    8081        ] );
    8182        $jetpack_module_manager->setup();
     
    124125
    125126        $options->setup();
     127
     128        // Options for Jetpack's subscription module.
     129        add_filter( 'pre_option_stb_enabled', '__return_zero' );
     130        add_filter( 'pre_option_stc_enabled', '__return_zero' );
    126131    }
    127132
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php

    r6502 r6507  
    5656
    5757    register_sidebar( [
    58         'id'           => 'sidebar-1',
    59         'before'       => '<div class="widget">',
    60         'after'        => '</div>',
    61         'before_title' => '<h4>',
    62         'after_title'  => '</h4>',
     58        'id'            => 'sidebar-1',
     59        'before_widget' => '<div id="%1$s" class="widget %2$s">',
     60        'after_widget'  => '</div>',
     61        'before_title'  => '<h4>',
     62        'after_title'   => '</h4>',
    6363    ] );
    6464}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/sidebar.php

    r6502 r6507  
    1616    if ( ! dynamic_sidebar( 'sidebar-1' ) ) :
    1717        $widget_args = [
    18             'before'       => '<div class="widget">',
    19             'after'        => '</div>',
    2018            'before_title' => '<h4>',
    2119            'after_title'  => '</h4>',
Note: See TracChangeset for help on using the changeset viewer.