-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgh-minify.php
More file actions
28 lines (25 loc) · 794 Bytes
/
gh-minify.php
File metadata and controls
28 lines (25 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
Plugin Name: Goatherd Minify
Author: Maik Penz
Plugin URI: https://github.com/goatherd
Description: Plugin HTML minification
Version: 1.2-alpha
Requires PHP 5.3 or newer
Requires ob-cache support
*/
// favour autoloading
if (!interface_exists('Goatherd\WpPlugin\Minify\MinifyInterface', true)) {
require_once __DIR__ . '/src/Minify/MinifyInterface.php';
}
if (!class_exists('Goatherd\WpPlugin\Minify\HtmlMinify', true)) {
require_once __DIR__ . '/src/Minify/HtmlMinify.php';
}
if (!class_exists('Goatherd\WpPlugin\Minify\FastMinify', true)) {
require_once __DIR__ . '/src/Minify/FastMinify.php';
}
if (!class_exists('Goatherd\WpPlugin\Minify', true)) {
require_once __DIR__ . '/src/Minify.php';
}
// let's enable the cache
Goatherd\WpPlugin\Minify::initWordpress();