@@ -3,7 +3,10 @@ |
||
3 | 3 | * below code handles updates and is only included by autoptimize.php if/ when needed |
4 | 4 | */ |
5 | 5 | |
6 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
6 | +if ( ! defined( 'ABSPATH' ) ) { |
|
7 | + exit; |
|
8 | +} |
|
9 | +// Exit if accessed directly |
|
7 | 10 | |
8 | 11 | $majorUp = false; |
9 | 12 | $autoptimize_major_version=substr($autoptimize_db_version,0,3); |
@@ -3,7 +3,10 @@ |
||
3 | 3 | Classlessly add a "more tools" tab to promote (future) AO addons and/ or affiliate services |
4 | 4 | */ |
5 | 5 | |
6 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
6 | +if ( ! defined( 'ABSPATH' ) ) { |
|
7 | + exit; |
|
8 | +} |
|
9 | +// Exit if accessed directly |
|
7 | 10 | |
8 | 11 | add_action('admin_init', 'ao_partner_tabs_preinit'); |
9 | 12 | function ao_partner_tabs_preinit() { |
@@ -4,7 +4,10 @@ |
||
4 | 4 | * new in Autoptimize 2.2 |
5 | 5 | */ |
6 | 6 | |
7 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
7 | +if ( ! defined( 'ABSPATH' ) ) { |
|
8 | + exit; |
|
9 | +} |
|
10 | +// Exit if accessed directly |
|
8 | 11 | |
9 | 12 | function ao_js_snippetcache($jsin,$jsfilename) { |
10 | 13 | $md5hash = "snippet_".md5($jsin); |
@@ -2,7 +2,10 @@ |
||
2 | 2 | // flush as many page cache plugin's caches as possible |
3 | 3 | // hyper cache and gator cache hook into AO, so we don't need to :-) |
4 | 4 | |
5 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
5 | +if ( ! defined( 'ABSPATH' ) ) { |
|
6 | + exit; |
|
7 | +} |
|
8 | +// Exit if accessed directly |
|
6 | 9 | |
7 | 10 | function autoptimize_flush_pagecache() { |
8 | 11 | if(function_exists('wp_cache_clear_cache')) { |