-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbwp-minify.php
More file actions
32 lines (28 loc) · 1.04 KB
/
bwp-minify.php
File metadata and controls
32 lines (28 loc) · 1.04 KB
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
29
30
31
32
<?php
/*
Plugin Name: Better WordPress Minify
Plugin URI: http://betterwp.net/wordpress-plugins/bwp-minify/
Description: Allows you to minify your CSS and JS files for faster page loading for visitors. This plugin uses the PHP library <a href="http://code.google.com/p/minify/">Minify</a> and relies on WordPress's enqueueing system rather than the output buffer (will not break your website in most cases). This plugin is very customizable and easy to use.
Version: 1.2.3-1
Text Domain: bwp-minify
Domain Path: /languages/
Author: Khang Minh
Author URI: http://betterwp.net
License: GPLv3
*/
// In case someone integrates this plugin in a theme
if (class_exists('BWP_MINIFY'))
return;
// DBS HB 2013-11-02
if ( ! defined( 'BWP_DISABLED' ) || BWP_DISABLED === 'false' || BWP_DISABLED === false || is_admin() ) {
// Frontend
require_once('includes/class-bwp-minify.php');
$bwp_minify = new BWP_MINIFY();
}
// Backend
add_action('admin_menu', 'bwp_minify_init_admin', 1);
function bwp_minify_init_admin()
{
global $bwp_minify;
$bwp_minify->init_admin();
}