WordPress.org

Making WordPress.org

Changeset 2185


Ignore:
Timestamp:
12/11/2015 03:04:08 PM (6 years ago)
Author:
kovshenin
Message:

WordCamp.org: Remove Jetpack's Holiday Snow option.

Reverts r2184 in favor of a better patch by jeherve.

Props jeherve.
See #1460-meta.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins
Files:
2 edited

Legend:

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

    r2085 r2185  
    191191    return "url('" . str_replace( "'", "\\'", $url ) . "')";
    192192}
     193
     194/**
     195 * Disable Jetpack's Holiday Snow on all WordCamp sites
     196 *
     197 * That option appears in Settings > General between December 1st and January 4th.
     198 * It is off by default.
     199 * This filter removes it completely.
     200 */
     201add_filter( 'jetpack_is_holiday_snow_season', '__return_false' );
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r2184 r2185  
    193193add_action( 'wp_ajax_wcorg_flush_rewrite_rules_everywhere',        'wcorg_flush_rewrite_rules' ); // This isn't used by the wp-cli command, but is useful for manual testing
    194194add_action( 'wp_ajax_nopriv_wcorg_flush_rewrite_rules_everywhere', 'wcorg_flush_rewrite_rules' );
    195 
    196 // No Jetpack snow.
    197 add_filter( 'jetpack_is_holiday_snow_season', '__return_false' );
Note: See TracChangeset for help on using the changeset viewer.