接上面开始wp-config.php,wp-settings.php这两个文件,wp-config.php故名恩意配置文件所以没什么可解释的。
wp-settings.php最上在的函数wp_unregister_GLOBALS用来当register_globals设置为on时注销自动产生的全局变量,register_globals现在是强烈建议为off的,因为有安全问题。
从28行起到49行都是为了处理不同运行环境可能产生的问题,wp的兼容性问题处理的很周道。如果 是做开源软件这样是很有必要的,当然如果是开发自己的产品有自己的远行平台就完全没有这个必要,毕竟有一定的效率问题。关于$_SERVER变量可以直接去研究phpinfo里的所有值一般都可以看明白。
像55行这种友好的提示信息是很有必要的,因为你的用户不一定是懂技术的。
接下来的 timer_start和timer_end就是用来计算页面执行时间的两个函数.
LANGDIR,PLUGINDIR这些常量的判断为自定义插件和语言目录作了预留, 120行CUSTOM_USER_TABLE,CUSTOM_USER_META_TABLE这里说明你可以自定义用户表和你的其它应用共用。
发现这样不行,还果把说明写在注释里,再帖出来,本来记得有一个函数可以把文件着色格式化输出的,就是说在网页显示的效果和你在IDE里看到效果一样,现在找不到了有谁知道这个函数请告诉我,下面再继续。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version
SublimeText3 Linux latest version
