From f9652ed7c37f2fee5d45c0bfb38235b9440a1e46 Mon Sep 17 00:00:00 2001 From: zhaofeng-shu33 <616545598@qq.com> Date: Tue, 17 Mar 2020 13:49:29 +0800 Subject: [PATCH] replace str --- index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index a65ac2b..faeae68 100644 --- a/index.php +++ b/index.php @@ -232,11 +232,14 @@ class WP_CHINA_YES { } public static function settings() { - echo << - EOT; + $plugin_root_url = plugin_dir(); + str_replace('/wp-content/plugins', $plugin_root_url, $iframe_str); + echo $iframe_str; } }