Making WordPress.org

Changeset 8750


Ignore:
Timestamp:
05/08/2019 05:02:43 PM (6 years ago)
Author:
iandunn
Message:

Jetpack Tweaks: Remove duplicate JITM-disabling code.

Similar code is being run in the jetpack-disable-notices plugin that's shared with w.org, so this isn't needed here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/miscellaneous.php

    r8494 r8750  
    66// Allow Photon to fetch images that are served via HTTPS
    77add_filter( 'jetpack_photon_reject_https',    '__return_false' );
    8 
    9 /**
    10  * Modify hooks after Jetpack::init()
    11  *
    12  * @todo This may be unnecessary and removable since there is now a similar wporg mu-plugin. See [dotorg13221].
    13  */
    14 function modify_hooks_after_jetpack_init() {
    15     /*
    16      * Many of these messages are just marketing upsells for services we don't need, don't want, or have
    17      * alternatives for already. Those messages aren't relevant to organizers, so they just intrude on their work
    18      * unnecessarily.
    19      */
    20     add_filter( 'jetpack_just_in_time_msgs', '__return_false', 11 );
    21 }
    22 
    23 add_action( 'plugins_loaded', __NAMESPACE__ . '\modify_hooks_after_jetpack_init' );
    248
    259/**
Note: See TracChangeset for help on using the changeset viewer.