Check if get_site_option() is defined. It isn't when auto upgrading from <= 2.7.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2854da3b5e
commit
e8b025b971
|
@ -27,8 +27,12 @@ do_action('admin_footer', '');
|
|||
do_action('admin_print_footer_scripts');
|
||||
do_action("admin_footer-$hook_suffix");
|
||||
|
||||
if ( false === get_site_option('can_compress_scripts') )
|
||||
compression_test();
|
||||
// get_site_option() won't exist when auto upgrading from <= 2.7
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue