-
Notifications
You must be signed in to change notification settings - Fork 3
/
readme.txt
299 lines (232 loc) · 9.35 KB
/
readme.txt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
=== WP Minify Fix ===
Tags: minify, js, css, html, javascript, cascading style sheets, optimize, performance, performance optimization, optimize, optimizer, speed, http request, phpspeedy, fix, compress, performance, import, cache, combine, bundle, plugin, google page speed, nginx
Contributors: NodeCode, madeinthayaland
Requires at least: 2.8
Tested up to: 4.3.1
Stable Tag: 1.4.1
[Fixed] This plugin uses the Minify engine to combine and compress JS and CSS files
to improve page load time.
== Description ==
This plugin is a fork of [WP Minify](http://wordpress.org/plugins/wp-minify/) to fix bugs and add features, because it has not been updated since 2012-6-4.
This plugin integrates the [Minify engine](https://github.com/mrclay/minify)
into your WordPress blog. Once enabled, this plugin will combine and compress
JS and CSS files to improve page load time.
= What has been fixed? =
* Minify engine updated to version 2.1.7
* Cache interval option has been fixed
* Move CSS-@imports to the top of the output
* Bottom CSS- and JavaScript output fixed
* Support for script tags without `type="text/javascript"`
* Detection of protocol-relative URLs as external file (e.g. Google AdSense)
* New option for the HTML5 async attribute
* A separate JavaScript file in the footer is now possible
= How Does it Work? =
WP Minify Fix grabs JS/CSS files in your generated WordPress page and passes that
list to the Minify engine. The Minify engine then returns a consolidated,
minified, and compressed script or style for WP Minify to reference in the
WordPress header.
= Features =
* Easily integrate Minify into your WordPress blog.
* Minifies JavaScript, CSS, and HTML.
* Debug tools to help you debug your issues.
* Ability to include extra JS and CSS files for Minifying.
* Ability to exclude certain JS and CSS files for Minifying.
* Minified JS and CSS files can be placed wherever you want.
* Support for to minifying external files via caching.
* Ability to pass extra arguments to Minify engine.
* Expire headers for minified JS and CSS files.
* Detection and elimination of duplicate sources.
* Plugin hooks!
You can also commit changes on our [Github repository](https://github.com/nodecode/wp-minify-fix).
== Changelog ==
= 1.4.1 =
* Duplicate footer scripts bug fixed
* PHP warning message in some scenarios fixed
* Newlines before the first attribute in open tags removed
* Compatibility changes
= 1.4.0 =
* Added option for the HTML5 async attribute
* Added option for a separate JavaScript file in the footer
* Tabs are used instead of spaces in the PHP code
* Bugfixes
* Small changes
= 1.3.4 =
* Support for script-tags without `type="text/javascript"`
* Detection of protocol-relative URLs as external file (e.g. Google AdSense)
= 1.3.3 =
* Bottom CSS- and JavaScript output fixed
= 1.3.2 =
* Move CSS-@imports to the top of the output
= 1.3.1 =
* Minify engine 2.1.7 updated
= 1.3.0 =
* WP Minify Fix released
* Cache interval fixed
= 1.2.0 =
* Tested with 3.3.2
* No longer showing attribution link by default.
* Changed donation phrasing.
= 1.1.8 =
* Removed unnecessary error_log line.
= 1.1.7 =
* Set User Agent as "WP-Minify" when curling things.
* Cleaned up some old code.
* Added last modified time to pretty URLs.
* Updating it_IT translation (thanks Gianni Diiurno!).
* Added uk translation (thanks Jurko Chervony!).
= 1.1.6 =
* Extra precautions when printing last modified time variable (?m= vs. &m=)
= 1.1.5 =
* Fixed documentation.
= 1.1.4 =
* Made pretty URL off by default since it doesn't work for everybody.
= 1.1.3 =
* Added it_IT translation (thanks Gianni Diurno!)
= 1.1.2 =
* Re-did options page and documentation to make things a bit more clear.
= 1.1.1 =
* Fixed incomplete /min/config.php file.
= 1.1 =
* Fixed "Class 'WPMinifyCommon' not found" errors that some are seeing.
* Added pretty URL for minified files so now you can stick it on a CDN.
* Organized options page.
= 1.0.4 =
* Fixed conflict with W3 Total Cache.
= 1.0.3 =
* Fixed "Invalid argument supplied for foreach()" error that some are having.
= 1.0.2 =
* Adding options for excluding certain URIs from WP Minify parsing.
= 1.0.1 =
* Reverting bbpress fix since it causs Minify to not even run.
= 1.0.0 =
* Added option to minify HTML.
* Added ability to NOT minify when "wp-minify-off=1" is in URL.
* Added option to report errors through FirePHP.
* Added "wp_minify_js_url" filter
* Added "wp_minify_css_url" filter
* Added "wp_minify_content" filter
* Enhanced "JavaScript files to include" feature.
* Enhanced "CSS files to include" feature.
* Fixed persistent SSL issue (Thanks belg4mit!)
* Fixed bbpress issue (Thanks foobar!)
= 0.9.3 =
* Fixed removing trailing slash in base path.
= 0.9.2 =
* Fixed "delimiter" error.
* Fixed admin sidebar.
= 0.9.1 =
* Automatically set far future expiration headers in Minify config (30 days).
* Automatically detect subdirectory from siteurl for passing as base path
for Minify engine.
= 0.9.0 =
* Added SSL option to force http -> https on secured pages.
* Updated common.php and some other maintenance.
= 0.8.1 =
* Fixed WPMU subdirectory bug.
= 0.8.0 =
* Added ability to de-dupe sources
* Added ability to manually specify location of minified JS and CSS files.
* Fixed XHTML compliance bugs
* Cleaned empty lines in HTML output
= 0.7.4 =
* Fixed detecting if script is local or not.
= 0.7.3 =
* Fixed corner case on expire headers implementation.
= 0.7.2 =
* Add expire headers to combined JS and CSS files (Thanks Jan Seidl!).
= 0.7.1 =
* Fixed extra arguments for Minify engine.
= 0.7.0 =
* Added advanced options:
- Minification on external files
- Place JavaScript in footer
- Extra arguments for Minify engine
* Removed wp_path option (Thanks Jan Seidl!)
* Fixed Output Buffer conflicts with other plugins that use output buffering
such as All-in-One SEO and Anarchy Media Player.
= 0.6.5 =
* Fixed URL building (bug introduced by last release).
* Brought back WordPress path settings as some people with .htaccess issues
may still need this.
= 0.6.4 =
* Fixed CSS regex to catch "media=''" case. (Thanks forum user bobmarkl33!)
* Modified minified JavaScript injection to the end of <head> (Thanks forum
user bobmarl33!)
* Fixed WP Minify working with blogs installed in subdirectory of webroot.
(Thanks forum user Luke!)
* Removed WordPress path settings as this is no longer needed per Luke's fix.
= 0.6.3 =
* Fixed JavaScript minification failure for large number of files.
= 0.6.2 =
* Fixed admin array_keys() bug
* Updated .pot file.
= 0.6.1 =
* Added .pot file.
= 0.6 =
* Upgraded to Minify engine 2.1.3.
* Added automatic Minify engine cache configuration.
* Fixed HTML5 <header> conflict.
* Fixed bug from blog installed in subdirectory.
* Fixed localization.
= 0.5 =
* Added option to disable JS or CSS minification.
* Fixed a few bugs.
* Admin facelift
= 0.4.1 =
* Fixed non-replaced </link> tag for valid XHTML usage.
= 0.4 =
* Automatically exclude CSS conditionals.
* Automatically exclude CSS media != all, or screen.
* Automatically exclude https URLs.
* Added sanity checking for buffer start & stop.
* Moved buffer start to init with priority 99999.
* Fixed "strpos()" warnings when settings have empty lines.
= 0.3.1 =
* Fixed "URL file-access disabled" errors.
* Fixed "implode()" warnings.
= 0.3 =
* WP 2.8 Compatibility
= 0.2.1 =
* Fixed another CSS exclusion bug (src_match -> href_match).
* Fixed JS WP Minify bug passing double forward slashes when not needed.
* Added media="screen" for minified CSS reference.
= 0.2 =
* Changed the way CSS and JS files are picked up. No more wp_enqueue_*
requirements!
* Fixed exclusion bug where specified files are not excluded from
minification.
* Removed OMNINOGGIN dashboard widget.
= 0.1.1 =
* Fixed array_slice() warning in the admin dashboard.
* Fixed version check to not break page when $wp_version is empty.
= 0.1 =
* Initial release
= Credits =
This plugin utilizes the [Minify engine](http://code.google.com/p/minify/)
coded by [Steve Clay](http://mrclay.org/) and [Ryan Grove](http://wonko.com)
to perform all JS & CSS Minifying.
== Installation ==
1. Upload the plugin to your plugins folder: 'wp-content/plugins/'
2. Make sure 'wp-content/plugins/wp-minify-fix/cache' is writeable by the
web server. (try 'chmod 777 wp-content/plugins/wp-minify-fix/cache')
3. Activate the 'WP Minify Fix plugin from the Plugins admin panel.
== Frequently Asked Questions ==
= Where is the documentation? =
If you are having problems with this plugin, please first take a look at the
various links under the "Documentation" section of the
[plugin page](http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/).
= I still can't get it to work after reading the documentation! =
Please take a look at documentation available on the
[plugin page](http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/).
to see if any of them can help you. If not, feel free to post your issues
on the appropriate [plugin support forum](http://omninoggin.com/forum).
I will try my best to help you resolve any issues that you are having.
== License ==
All contents under the wp-minify-fix/min/ directory is licensed under
[New BSD License](http://www.opensource.org/licenses/bsd-license.php) (which is
[GPL](http://www.gnu.org/copyleft/gpl.html) compatible). All other
contents within this package is licensed under GPLv3.
== Screenshots ==
1. Options
2. Before WP Minify (11 JS requests @ 111KB)
3. After WP Minify (1 JS request @ 30KB)