![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/plugins/wp-rocket/inc/3rd-party/plugins/ |
<?php defined( 'ABSPATH' ) || exit; if ( defined( 'DISQUS_VERSION' ) ) : /** * Excludes Disqus scripts from JS minification * * @since 2.9 * @author Remy Perona * * @param Array $excluded_js An array of JS handles enqueued in WordPress. * @return Array the updated array of handles */ function rocket_exclude_js_disqus( $excluded_js ) { $excluded_js[] = str_replace( home_url(), '', plugins_url( '/disqus-comment-system/media/js/disqus.js' ) ); $excluded_js[] = str_replace( home_url(), '', plugins_url( '/disqus-comment-system/media/js/count.js' ) ); return $excluded_js; } add_filter( 'rocket_exclude_js', 'rocket_exclude_js_disqus' ); endif;