mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
优化对子目录部署的WP的支持的相关代码
This commit is contained in:
parent
248b2b486e
commit
4c62386d30
1 changed files with 3 additions and 5 deletions
|
@ -119,15 +119,13 @@ class WP_CHINA_YES {
|
|||
}
|
||||
|
||||
public static function settings() {
|
||||
$iframe_str = <<<EOT
|
||||
$setting_page_url = plugins_url('settings.html', __FILE__);
|
||||
echo <<<EOT
|
||||
<div style="height: 20px"></div>
|
||||
<iframe src="/wp-content/plugins/wp-china-yes/settings.html"
|
||||
<iframe src="$setting_page_url"
|
||||
frameborder="0" height="850" width="800px;" scrolling="No" leftmargin="0" topmargin="0">
|
||||
</iframe>
|
||||
EOT;
|
||||
$plugin_root_url = plugins_url();
|
||||
$iframe_str = str_replace('/wp-content/plugins', $plugin_root_url, $iframe_str);
|
||||
echo $iframe_str;
|
||||
}
|
||||
|
||||
public static function set_cookie() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue