Making WordPress.org

Changeset 1524


Ignore:
Timestamp:
04/30/2015 04:42:22 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp.org: move the wcorg-https-cache.php hack into the main ssl.php file.

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

Legend:

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

    r881 r1524  
    103103    return 'https://wordcamp.org/wp-login.php';
    104104}
     105
     106/**
     107 * WP Super Cache puts http and https requests in the same bucket which
     108 * generates mixed content warnings and generat breakage all around. The
     109 * following makes sure only HTTPS requests are cached.
     110 */
     111add_action( 'init', function() {
     112        if ( ! is_ssl() )
     113                define( 'DONOTCACHEPAGE', true );
     114});
Note: See TracChangeset for help on using the changeset viewer.