Created
December 22, 2016 01:01
-
-
Save remyperona/ca346570ce0b9ff6c7927c1ea2abff59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Rocket CDN exe file | |
* Description: Use the CDN URL for exe files. | |
* Author: WP Rocket team | |
* License: GNU General Public License v3 or later | |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
*/ | |
// Basic security, prevents file from being loaded directly. | |
defined( 'ABSPATH' ) or die( 'Cheatin’ uh?' ); | |
add_filter( 'rocket_cdn_custom_filetypes', 'wp_rocket_cdn_exe' ); | |
function wp_rocket_cdn_exe( $extensions ) { | |
$extensions[] = 'exe'; | |
return $extensions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment