WordPress.org

Making WordPress.org

Changeset 5477


Ignore:
Timestamp:
05/04/17 17:02:56 (7 months ago)
Author:
coreymckrill
Message:

WordCamp: Modify the priority of some Jetpack tweaks

This makes the change suggested in #2811 to modify the priority of the filter
on jetpack_just_in_time_msgs to ensure that the JITM stays turned off.

File:
1 edited

Legend:

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

    r5323 r5477  
    22 
    33namespace WordCamp\Jetpack_Tweaks; 
    4 defined( 'WPINC' ) or die(); 
    5  
    6 add_action( 'plugins_loaded', __NAMESPACE__ . '\modify_hooks_after_jetpack_init' ); 
     4defined( 'WPINC' ) || die(); 
    75 
    86// Allow Photon to fetch images that are served via HTTPS 
     
    2119     * unnecessarily. 
    2220     */ 
    23     add_filter( 'jetpack_just_in_time_msgs', '__return_false' ); 
     21    add_filter( 'jetpack_just_in_time_msgs', '__return_false', 11 ); 
    2422} 
     23 
     24add_action( 'plugins_loaded', __NAMESPACE__ . '\modify_hooks_after_jetpack_init' ); 
Note: See TracChangeset for help on using the changeset viewer.