WordPress:WPMU Commonly Edited Core Files

来自站长百科
跳转至: 导航、​ 搜索

Matt said "... I strongly recommend never touching core files".

Matt说"... 我强烈建议你永远不要处理核心文件"

Although the separation between admin-added and WPMU-distributed files is meant to be total, for various reasons the community does have some files that it finds reason to change.

虽然管理员添加的和WPMU发行的文件之间的区分是完全的,但是因为不同的原因,团队的确有一些需要更改的文件。

Many would favour a clean distinction between the core files of WPMU and those that they add or customise.

许多人希望WPMU核心文件和自己添加或者自定义的文件之间能够清楚地分开。

For example, needing to change a core file to change the default blog links is awkward for the administrator trying to keep up to date with the core distribution, and causes noise in the blog. Some

例如,需要更改核心文件,以更改默认博客链接,试着跟上核心发行的文件的管理员,很难处理,导致博客中出现噪音。一些

Many of these have tickets in trac so that they can be configuration items.

许多在trac中有tickets因此可以是配置内容。

wp-admin/index.php for default feeds in the dashboard[ ]

dashboard中的默认feeds的wp-admin/index.php[ ]

http://mu.wordpress.org/forums/topic.php?id=1910&replies=5

http://mu.wordpress.org/forums/topic.php?id=1584&replies=6


http://mu.wordpress.org/forums/topic.php?id=1910&replies=5

http://mu.wordpress.org/forums/topic.php?id=1584&replies=6

for allowing only registered users to comment[ ]

只允许已注册的用户发表评论[ ]

http://mu.wordpress.org/forums/topic.php?id=1533&replies=7#post-8544

http://mu.wordpress.org/forums/topic.php?id=1533&replies=7#post-8544

Changing the Hello World Posts[ ]

更改 Hello World 文章[ ]

http://mu.wordpress.org/forums/topic.php?id=965&page=3&replies=66#post-10470 http://mu.wordpress.org/forums/topic.php?id=1812&replies=12#post-10607


http://mu.wordpress.org/forums/topic.php?id=965&page=3&replies=66#post-10470 http://mu.wordpress.org/forums/topic.php?id=1812&replies=12#post-10607


Short answer: changing this is "beyond the scope of wpmu" as "wpmu follows wp" and there is apparently no need to change it in WP. (Presumbably because in WP the administrator is also the installer, and a generic message fits all.).

简要回答:更改这个文章"超过了wpmu的范围"因为"wpmu 跟随wp"而且很显然在WP中不需要更改这篇文章。(因为在WP中管理员也是安装人员,同一类的信息适合所有内容。)

Of course, there's also the problem that people try to workaround these posts in other plugins, such as http://mu.wordpress.org/forums/topic.php?id=965&page=2&replies=66#post-10065 - and this creates code bloat.

当然,人们在其它插件中处理这些文章的时候,也会遇到问题,例如http://mu.wordpress.org/forums/topic.php?id=965&page=2&replies=66#post-10065 – 导致了代码冗余。

Preventing comments being interpreted as updates to the blog[ ]

阻止博客更新的时候,评论被解释[ ]

http://mu.wordpress.org/forums/topic.php?id=1982&replies=7

http://mu.wordpress.org/forums/topic.php?id=1982&replies=7

Is it possible that when a new blog is registered successfully, that the membership setting (Users must be registered and logged in to comment) could default to checked vs unchecked?[ ]

新博客成功地注册的时候,成员资格设置(用户必须注册并且登录到评论)是默认检查还是不检查?[ ]

http://mu.wordpress.org/forums/topic.php?id=1933&replies=3

http://mu.wordpress.org/forums/topic.php?id=1933&replies=3