Applying WordPress Licensing to Your Projects

Regular users of WordPress software need never concern themselves with the GPL of the WordPress project at all. Regular users of the platform have to do nothing special to abide by the GPL. You don't have to pay to use the WordPress software, and you aren't required to acknowledge that you're using the WordPress software on your site. (That said, providing on your site at least one link back to the WordPress Web site is common courtesy and a great way of saying thanks.)

Most regular users of WordPress aren't even aware of the software licensing because it doesn't affect the day-to-day business of blogging and publishing their sites with the platform. However, it's not a bad idea to educate yourself on the basics of the GPL and try to be certain that any plugins and themes you use with your WordPress installation abide by the GPL so that you have peace of mind that all applications and software you're using are in compliance.

Knowledge of the GPL must increase dramatically if you develop plugins or themes for the WordPress platform. We cover WordPress themes in Book VI, and WordPress plugins in Book VII.

The public licensing that pertains to WordPress plugins and themes wasn't decided in a court of law. The current opinion of the best (legal) practices is just that, opinion. The opinion of the WordPress core development team, as well as the opinion of the Software Freedom Law Center (http://en.wikipedia.org/wiki/Software_Freedom_Law_Center), is that WordPress plugins and themes are derivative works of WordPress and, therefore, must abide by the GPL by releasing the development works under the same license that WordPress has.

A derivative work, as it relates to WordPress, is a work that contains programming whose functionality depends on the core WordPress files. Because plugins and themes contain PHP programming that call WordPress core functions, they rely on the core WordPress framework to work properly and, therefore, are extensions of the software.

image The text of the opinion from James Vasile from the Software Freedom Law Center is available at http://wordpress.org/news/2009/07/themes-are-gpl-too.

To maintain compliance with the GPL, plugin or theme developers cannot release development work under any (restrictive) license other than the GPL. Nonetheless, many plugin and theme developers have tried to release material under other licenses, and some have been successful (from a moneymaking standpoint). However, the WordPress community generally doesn't support these developers and their plugins and themes. Additionally, the core WordPress development team considers such works noncompliant with the license, and therefore, the law.

WordPress has made it publicly clear that they will not support or promote any theme or plugins not in 100 percent compliance with the GPL. If you are not 100 percent compliant with the GPL, then you cannot include your plugin or theme in the WordPress Plugin Directory hosted at http://wordpress.org. If you develop plugins and themes for WordPress, or are considering dipping your toe into that pool, do it in accordance with the GPL so that your works are in compliance and your good standing in the WordPress community is protected. Table 2-1 gives you a quick review of what you can (and cannot) do as a WordPress plugin and theme developer.

Table 2-1 Development Practices Compliant with GPL License

Development/Release Practice GPL Compliant?
Distribute to the public for free with GPL Yes
Distribute to the public for a cost with GPL Yes
Restrict the number of users of one download with GPL No
Split portions of your work between different licenses (PHP files are GPL; JavaScript or CSS files are licensed with the Creative Commons license) Yes (however, WordPress.org will not promote works that are not 100 percent GPL across all files)
Released under a different license, such as the PHP License No

The one and only way to make sure that your plugin or theme is 100 percent compliant with the GPL is to take the following few steps before you release your development work to the world:

  • Include a statement in your work that indicates the work is released under the GPLv2 license in the license.txt file, which WordPress does (refer to Figure 2-2). Alternatively, you can include this statement in the header of your plugin file:
    <?php
    
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License, version 2, as
        published by the Free Software Foundation.
    
        This program 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 this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */
    ?>
  • Do not restrict the use of your works by the number of users per download.
  • If you charge for your work, which is compliant with the GPL, the licensing doesn't change and users still have the freedom to modify your work and rerelease it under a different name.
  • Do not split the license of other files included in your work, such as CSS or graphics. Although this practice complies with the GPL, it won't be approved for inclusion in the WordPress Plugin Directory.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.237.77