Check if get_site_option() is defined. It isn't when auto upgrading from <= 2.7.
git-svn-id: https://develop.svn.wordpress.org/trunk@11357 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b165b06dcd
commit
c8876e3798
@ -27,8 +27,12 @@ do_action('admin_footer', '');
|
|||||||
do_action('admin_print_footer_scripts');
|
do_action('admin_print_footer_scripts');
|
||||||
do_action("admin_footer-$hook_suffix");
|
do_action("admin_footer-$hook_suffix");
|
||||||
|
|
||||||
if ( false === get_site_option('can_compress_scripts') )
|
// get_site_option() won't exist when auto upgrading from <= 2.7
|
||||||
compression_test();
|
if ( function_exists('get_site_option') ) {
|
||||||
|
if ( false === get_site_option('can_compress_scripts') )
|
||||||
|
compression_test();
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user