wordpress/wp-includes目录文件

本文详细介绍了WordPress核心文件夹wp-includes中的多个重要文件及其功能,包括XML-RPC支持、数据库连接函数、文章提取机制等。
  1. wp-includes/cache.php
  2. wp-includes/capabilities.php
  3. wp-includes/class-IXR.php:Incutio XML-RPC库。包括了 XML RPC支持函数。由http://scripts.incutio.com/xmlrpc/提供支持。
  4. wp-includes/classes.php:包括了基本的类,如核心文章提取机制WP_Query和改写管理WP_Rewrite。
  5. wp-includes/class-pop3.php:包括了支持使用POP邮箱的类。可供wp-mail.php 使用。
  6. wp-includes/class-snoopy.php:Snoopy是一个PHP类,用来模仿Web浏览器的功能,它能自动完成检索网页和发送表单的任务。
  7. wp-includes/comment-functions.php
  8. wp-includes/default-filters.php
  9. wp-includes/feed-functions.php
  10. wp-includes/functions-compat.php:即新版本PHP中用来支持老版本PHP的函数文件。
  11. wp-includes/functions-formatting.php:用于清理XHTML和用特定字符集正确格式化文本。
  12. wp-includes/functions-post.php:定义了在数据库中管理日志,查询用户权限,提取和撰写评论等函数。
  13. wp-includes/functions.php:包含许多重要的支持函数,它是WordPress中最大的文件,函数数量几乎是第二大文件的两倍。
  14. wp-includes/gettext.php:PHP-gettext GPL 翻译库组成部分。
  15. wp-includes/kses.php:用来渲染和过滤日志或评论中的HTML。
  16. wp-includes/links.php:用来管理和使用WordPress的链接功能。
  17. wp-includes/locale.php:用来替代默认的星期和月份值。
  18. wp-includes/pluggable-functions.php
  19. wp-includes/registration-functions.php
  20. wp-includes/rss-functions.php
  21. wp-includes/streams.php:定义了包装文件流和字符流的类。
  22. wp-includes/template-functions-author.php:包含了与日志作者或评论人相关的主题函数。
  23. wp-includes/template-functions-category.php:包含了与类别相关的主题函数。
  24. wp-includes/template-functions-comment.php:包含了与评论相关的主题函数。
  25. wp-includes/template-functions-general.php:包含了常规主题函数。
  26. wp-includes/template-functions-links.php:包含了与链接相关的主题函数。
  27. wp-includes/template-functions-post.php:包含了与日志相关的主题函数。
  28. wp-includes/template-functions.php:包含了以上所有”template-”文件。
  29. wp-includes/template-loader.php
  30. wp-includes/vars.php:用来设置杂项变量。
  31. wp-includes/version.php:用来设置当前使用的WordPress版本。
  32. wp-includes/wp-db.php:包含了用来连接MySQL数据库的函数。
  33. wp-includes/wp-l10n.php:提供支持多语言版本的函数。

转载于:https://www.cnblogs.com/vicenteforever/articles/1866096.html

[root@yfw ~]# cd /www/wwwroot/yfw_szrengjing_com [root@yfw yfw_szrengjing_com]# cd /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin [root@yfw wp-im-plugin]# /www/server/php/74/bin/php /usr/local/bin/composer require workerman/workerman PHP Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 98 Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 98 PHP Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/src/Composer/Util/Platform.php on line 94 No composer.json in current directory, do you want to use the one at /www/wwwroot? [Y,n]? y Always want to use the parent dir? Use "composer config --global use-parent-dir true" to change the default. In Platform.php line 94: putenv() has been disabled for security reasons require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...] [root@yfw wp-im-plugin]# cd /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin [root@yfw wp-im-plugin]# cat > composer.json << 'EOF' > { > "name": "your-company/wp-im-plugin", > "description": "WordPress IM Plugin with Workerman", > "type": "project", > "require": {}, > "autoload": { > "psr-4": { > "ImPlugin\\": "includes/" > } > } > } > EOF [root@yfw wp-im-plugin]# /www/server/php/74/bin/php -d disable_functions= /usr/local/bin/composer require workerman/workerman Cannot use workerman/workerman's latest version v5.1.6 as it requires php >=8.1 which is not satisfied by your platform. ./composer.json has been updated Running composer update workerman/workerman Loading composer repositories with package information Updating dependencies Lock file operations: 1 install, 0 updates, 0 removals - Locking workerman/workerman (v4.1.17) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Downloading workerman/workerman (v4.1.17) - Installing workerman/workerman (v4.1.17): Extracting archive 1 package suggestions were added by new dependencies, use `composer suggest` to see details. Generating autoload files 1 package you are using is looking for funding. Use the `composer fund` command to find out more! No security vulnerability advisories found. Using version ^4.1 for workerman/workerman [root@yfw wp-im-plugin]# /www/server/php/74/bin/php im-server.php start Workerman[im-server.php] start in DEBUG mode pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1229 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1231 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1233 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1235 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1237 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1239 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1241 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1243 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1245 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1247 -------------------------------------------- WORKERMAN -------------------------------------------- Workerman version:4.1.17 PHP version:7.4.33 Event-Loop:\Workerman\Events\Select --------------------------------------------- WORKERS --------------------------------------------- proto user worker listen processes status tcp root none websocket://0.0.0.0:2121 1 [OK] --------------------------------------------------------------------------------------------------- Press Ctrl+C to stop. Start success. pcntl_fork() has been disabled for security reasons in file /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1673 PHP Fatal error: Uncaught Exception: forkOneWorker fail in /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php:1728 Stack trace: #0 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php(1511): Workerman\Worker::forkOneWorkerForLinux() #1 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php(1485): Workerman\Worker::forkWorkersForLinux() #2 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::forkWorkers() #3 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/im-server.php(67): Workerman\Worker::runAll() #4 {main} thrown in /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1728 Fatal error: Uncaught Exception: forkOneWorker fail in /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php:1728 Stack trace: #0 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php(1511): Workerman\Worker::forkOneWorkerForLinux() #1 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php(1485): Workerman\Worker::forkWorkersForLinux() #2 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::forkWorkers() #3 /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/im-server.php(67): Workerman\Worker::runAll() #4 {main} thrown in /www/wwwroot/yfw_szrengjing_com/wp-content/plugins/wp-im-plugin/vendor/workerman/workerman/Worker.php on line 1728 [root@yfw wp-im-plugin]#
11-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值