Open Source glossaryThe GNU General Public License (GPL) is the copyleft license WordPress uses. Anyone can use and change the code, but versions they distribute must stay under the GPL.
The GNU General Public License (GPL) is a free-software license written by the Free Software Foundation. It lets anyone run, study, change, and share the code, on one condition: if you distribute the software or a modified version, you must do so under the GPL too, with the source code available. That condition is called copyleft.
The GPL and WordPress
WordPress is licensed under the GPL (version 2 or later). The WordPress project's position is that themes and plugins that build on WordPress are derivative works and should be GPL too; the WordPress.org directories only accept GPL-compatible code. This is why premium themes and plugins sold under the GPL can legally be shared, though support and updates usually come only with a paid license.
The license covers distribution. Running modified GPL code on your own website, without handing the code to anyone, does not oblige you to publish it.