包含软件许可证 - WordPress 插件遵循GPL许可证发布

大多数 WordPress 插件都遵循GPL 许可证发布,这与WordPress 本身使用的许可证相同 。不过,还有其他兼容的选项可供选择。最好清楚地标明插件使用的许可证。在“标题要求”部分,我们简要介绍了如何在插件标题注释中指明插件的许可证。

另一种常见且值得推荐的做法是在主插件文件(即包含插件标题注释的文件)的顶部附近放置一个许可证块注释。

因为插件和主题由于它们与 WordPress 交互并依赖 WordPress,因此通常被视为衍生作品。这意味着它们继承了 WordPress 的 GPL 许可证。因此,大多数插件和主题也应遵循 GPL 许可证。

该许可证块注释通常如下所示:

/*

{Plugin Name} is free software: you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation, either version 2 of the License, or

any later version.

 

{Plugin Name} is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

 

You should have received a copy of the GNU General Public License

along with {Plugin Name}. If not, see {URI to Plugin License}.

*/

WP官方的说法是,如果您想共享、销售或分发您的插件/主题,那么 PHP 代码必须兼容GPL。WordPress GPL是一种开源软件许可证,为 CMS 及其衍生作品(例如主题和插件)提供法律保护。GNU 公共许可证。WordPress 软件的发布许可证是自由软件基金会的GPLv2 (或更高版本)。

大多数WordPress插件都遵循GPL许可证发布,这与WordPress本身使用的许可证相同。不过,也有一些其他兼容的选项可供选择。

顶部