Skip to content

Commit

Permalink
Update pat_speeder.php
Browse files Browse the repository at this point in the history
This plugin had preferences now.
Note: "enable" attribute is set to "true" now.
  • Loading branch information
cara-tm committed May 10, 2016
1 parent 52c5509 commit 8ce18e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pat_speeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@
*/
function pat_speeder($atts)
{
global $prefs;

extract(lAtts(array(
'enable' => null,
'gzip' => true,
'code' => 'script,svg,pre,code',
'enable' => true,
'gzip' => $prefs['pat_speeder_gzip'],
'code' => $prefs['pat_speeder_tags'],
),$atts));

if ($enable)
if ( $enable || ($prefs['pat_speeder_enable'] && false != $enable) )
ob_start(function($buffer) use ($gzip, $code) {
return _pat_speeder_go($buffer, $gzip, $code);
});
Expand Down

0 comments on commit 8ce18e3

Please sign in to comment.