Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Autoptimize compatibility with Multisite #254

Open
wants to merge 6 commits into
base: master
from

Use a wrapper to get option (lost in previous commit).

  • Loading branch information...
Juanfran Granados
Juanfran Granados committed May 16, 2019
commit 8747878dedf0f5badb9f083b802b8128f1c0c0e9
@@ -370,7 +370,7 @@ public function options_page()
<div class="wrap">
<h1><?php _e( 'Autoptimize Settings', 'autoptimize' ); ?></h1>
<?php echo autoptimizeConfig::ao_admin_tabs(); ?>
<?php if ( 'on' !== get_option( 'autoptimize_js' ) && 'on' !== get_option( 'autoptimize_css' ) && 'on' !== get_option( 'autoptimize_html' ) && ! autoptimizeImages::imgopt_active() ) { ?>
<?php if ( 'on' !== autoptimizeOption::get_option( 'autoptimize_js' ) && 'on' !== autoptimizeOption::get_option( 'autoptimize_css' ) && 'on' !== autoptimizeOption::get_option( 'autoptimize_html' ) && ! autoptimizeImages::imgopt_active() ) { ?>
<div class="notice-warning notice"><p>
<?php _e( 'Most of below Extra optimizations require at least one of HTML, JS, CSS or Image autoptimizations being active.', 'autoptimize' ); ?>
</p></div>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.