[wordpress插件] Correct PHP_SELF正确的PHP_SELF

wordpress 插件 文章 2020-04-03 03:10 470 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

On some servers $_SERVER['PHP_SELF'] contains /example.com/index.php instead of just /index.php

在某些服务器上, $ _ SERVER ['PHP_SELF'] 包含 /example.com/index.php ,而不仅仅是 /index.php

.

This one-line plugin restores the correct value.

这个单行插件恢复了正确的值。

You only need it if you have problems with some other plugins and/or URLs like http://example.com/example.com/wp-admin/ in your admin screens.

仅当您在管理屏幕中遇到一些其他插件和/或 http://example.com/example.com/wp-admin/ 之类的URL时,才需要使用它。

安装步骤

    1. Upload correct-php-self folder to the /wp-content/plugins/ directory.
    2. correct-php-self 文件夹上传到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

下载地址
https://downloads.wordpress.org/plugin/correct-php-self.0.1.zip
-EOF-

AI助手支持GPT4.0