Making WordPress.org

Ticket #1460: 1460.diff

File 1460.diff, 749 bytes (added by jeherve, 7 years ago)

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

  • wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks.php

    diff --git wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks.php wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks.php
    index c75fe9f..fb96ac6 100644
    function sanitize_urls_in_css_properties( $url, $property ) { 
    190190
    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' );