wordpress-agent-kit 0.3.2 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/blueprint/SKILL.md +418 -0
- package/.agents/skills/wordpress-router/SKILL.md +52 -0
- package/.agents/skills/wordpress-router/references/decision-tree.md +55 -0
- package/.agents/skills/wp-abilities-api/SKILL.md +108 -0
- package/.agents/skills/wp-abilities-api/references/delegate-helper-pattern.md +241 -0
- package/.agents/skills/wp-abilities-api/references/domain-vs-projection.md +113 -0
- package/.agents/skills/wp-abilities-api/references/error-code-vocabulary.md +123 -0
- package/.agents/skills/wp-abilities-api/references/grouping-heuristic.md +89 -0
- package/.agents/skills/wp-abilities-api/references/input-schema-gotchas.md +265 -0
- package/.agents/skills/wp-abilities-api/references/php-registration.md +94 -0
- package/.agents/skills/wp-abilities-api/references/plugin-family-patterns.md +233 -0
- package/.agents/skills/wp-abilities-api/references/rest-api.md +13 -0
- package/.agents/skills/wp-abilities-api/references/shared-core-service.md +184 -0
- package/.agents/skills/wp-abilities-audit/SKILL.md +199 -0
- package/.agents/skills/wp-abilities-audit/references/audit-schema.md +300 -0
- package/.agents/skills/wp-abilities-audit/references/capability-gate-tracing.md +197 -0
- package/.agents/skills/wp-abilities-audit/references/controller-enumeration.md +116 -0
- package/.agents/skills/wp-abilities-verify/SKILL.md +215 -0
- package/.agents/skills/wp-abilities-verify/references/annotation-correctness.md +154 -0
- package/.agents/skills/wp-abilities-verify/references/audit-schema-validation.md +131 -0
- package/.agents/skills/wp-abilities-verify/references/permission-roundtrip.md +190 -0
- package/.agents/skills/wp-abilities-verify/references/runtime-harness.md +462 -0
- package/.agents/skills/wp-abilities-verify/references/schema-lints.md +118 -0
- package/.agents/skills/wp-abilities-verify/references/static-enumeration.md +126 -0
- package/.agents/skills/wp-block-development/SKILL.md +175 -0
- package/.agents/skills/wp-block-development/references/attributes-and-serialization.md +22 -0
- package/.agents/skills/wp-block-development/references/block-json.md +49 -0
- package/.agents/skills/wp-block-development/references/creating-new-blocks.md +46 -0
- package/.agents/skills/wp-block-development/references/debugging.md +36 -0
- package/.agents/skills/wp-block-development/references/deprecations.md +24 -0
- package/.agents/skills/wp-block-development/references/dynamic-rendering.md +23 -0
- package/.agents/skills/wp-block-development/references/inner-blocks.md +25 -0
- package/.agents/skills/wp-block-development/references/registration.md +30 -0
- package/.agents/skills/wp-block-development/references/supports-and-wrappers.md +18 -0
- package/.agents/skills/wp-block-development/references/tooling-and-testing.md +21 -0
- package/.agents/skills/wp-block-development/scripts/list_blocks.mjs +121 -0
- package/.agents/skills/wp-block-themes/SKILL.md +117 -0
- package/.agents/skills/wp-block-themes/references/creating-new-block-theme.md +37 -0
- package/.agents/skills/wp-block-themes/references/debugging.md +24 -0
- package/.agents/skills/wp-block-themes/references/patterns.md +18 -0
- package/.agents/skills/wp-block-themes/references/style-variations.md +14 -0
- package/.agents/skills/wp-block-themes/references/templates-and-parts.md +16 -0
- package/.agents/skills/wp-block-themes/references/theme-json.md +59 -0
- package/.agents/skills/wp-block-themes/scripts/detect_block_themes.mjs +117 -0
- package/.agents/skills/wp-interactivity-api/SKILL.md +180 -0
- package/.agents/skills/wp-interactivity-api/references/debugging.md +29 -0
- package/.agents/skills/wp-interactivity-api/references/directives-quickref.md +30 -0
- package/.agents/skills/wp-interactivity-api/references/server-side-rendering.md +310 -0
- package/.agents/skills/wp-performance/SKILL.md +147 -0
- package/.agents/skills/wp-performance/references/autoload-options.md +24 -0
- package/.agents/skills/wp-performance/references/cron.md +20 -0
- package/.agents/skills/wp-performance/references/database.md +20 -0
- package/.agents/skills/wp-performance/references/http-api.md +15 -0
- package/.agents/skills/wp-performance/references/measurement.md +21 -0
- package/.agents/skills/wp-performance/references/object-cache.md +24 -0
- package/.agents/skills/wp-performance/references/query-monitor-headless.md +38 -0
- package/.agents/skills/wp-performance/references/server-timing.md +22 -0
- package/.agents/skills/wp-performance/references/wp-cli-doctor.md +24 -0
- package/.agents/skills/wp-performance/references/wp-cli-profile.md +32 -0
- package/.agents/skills/wp-performance/scripts/perf_inspect.mjs +128 -0
- package/.agents/skills/wp-phpstan/SKILL.md +98 -0
- package/.agents/skills/wp-phpstan/references/configuration.md +52 -0
- package/.agents/skills/wp-phpstan/references/third-party-classes.md +76 -0
- package/.agents/skills/wp-phpstan/references/wordpress-annotations.md +124 -0
- package/.agents/skills/wp-phpstan/scripts/phpstan_inspect.mjs +263 -0
- package/.agents/skills/wp-playground/SKILL.md +233 -0
- package/.agents/skills/wp-playground/references/blueprints.md +36 -0
- package/.agents/skills/wp-playground/references/cli-commands.md +39 -0
- package/.agents/skills/wp-playground/references/debugging.md +16 -0
- package/.agents/skills/wp-playground/references/e2e-playwright.md +115 -0
- package/.agents/skills/wp-plugin-development/SKILL.md +113 -0
- package/.agents/skills/wp-plugin-development/references/data-and-cron.md +19 -0
- package/.agents/skills/wp-plugin-development/references/debugging.md +19 -0
- package/.agents/skills/wp-plugin-development/references/lifecycle.md +33 -0
- package/.agents/skills/wp-plugin-development/references/security.md +29 -0
- package/.agents/skills/wp-plugin-development/references/settings-api.md +22 -0
- package/.agents/skills/wp-plugin-development/references/structure.md +16 -0
- package/.agents/skills/wp-plugin-development/scripts/detect_plugins.mjs +122 -0
- package/.agents/skills/wp-plugin-directory-guidelines/SKILL.md +133 -0
- package/.agents/skills/wp-plugin-directory-guidelines/references/gpl-compliance.md +217 -0
- package/.agents/skills/wp-plugin-directory-guidelines/references/guideline-review-checklist.md +592 -0
- package/.agents/skills/wp-plugin-directory-guidelines/references/naming-rules.md +121 -0
- package/.agents/skills/wp-project-triage/SKILL.md +39 -0
- package/.agents/skills/wp-project-triage/references/triage.schema.json +143 -0
- package/.agents/skills/wp-project-triage/scripts/detect_wp_project.mjs +610 -0
- package/.agents/skills/wp-rest-api/SKILL.md +115 -0
- package/.agents/skills/wp-rest-api/references/authentication.md +18 -0
- package/.agents/skills/wp-rest-api/references/custom-content-types.md +20 -0
- package/.agents/skills/wp-rest-api/references/discovery-and-params.md +20 -0
- package/.agents/skills/wp-rest-api/references/responses-and-fields.md +30 -0
- package/.agents/skills/wp-rest-api/references/routes-and-endpoints.md +36 -0
- package/.agents/skills/wp-rest-api/references/schema.md +22 -0
- package/.agents/skills/wp-wpcli-and-ops/SKILL.md +126 -0
- package/.agents/skills/wp-wpcli-and-ops/references/automation.md +30 -0
- package/.agents/skills/wp-wpcli-and-ops/references/cron-and-cache.md +23 -0
- package/.agents/skills/wp-wpcli-and-ops/references/debugging.md +17 -0
- package/.agents/skills/wp-wpcli-and-ops/references/multisite.md +22 -0
- package/.agents/skills/wp-wpcli-and-ops/references/packages-and-updates.md +22 -0
- package/.agents/skills/wp-wpcli-and-ops/references/safety.md +30 -0
- package/.agents/skills/wp-wpcli-and-ops/references/search-replace.md +40 -0
- package/.agents/skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs +90 -0
- package/.agents/skills/wp-wpengine/SKILL.md +398 -0
- package/.agents/skills/wp-wpengine/references/ci-gate.md +469 -0
- package/.agents/skills/wp-wpengine/references/github-actions-deploy.md +736 -0
- package/.agents/skills/wp-wpengine/scripts/ci-gate.sh +118 -0
- package/.agents/skills/wp-wpengine/scripts/wpe-check.sh +89 -0
- package/.agents/skills/wp-wpengine/scripts/wpe-preflight.sh +104 -0
- package/.agents/skills/wpds/SKILL.md +59 -0
- package/.github/agents/wp-architect.agent.md +1 -2
- package/.github/copilot-instructions.md +1 -1
- package/.github/instructions/wordpress-workflow.instructions.md +3 -3
- package/.github/skills/wp-playground/SKILL.md +132 -1
- package/.github/skills/wp-playground/references/e2e-playwright.md +115 -0
- package/.github/skills/wp-wpengine/SKILL.md +127 -0
- package/AGENTS.md +22 -10
- package/AGENTS.template.md +20 -10
- package/README.md +93 -86
- package/dist/cli.js +5 -1
- package/dist/commands/clean-skills.js +64 -0
- package/dist/commands/setup.js +6 -2
- package/dist/commands/sync-skills.js +3 -0
- package/dist/lib/api.js +176 -4
- package/dist/lib/installer.js +166 -2
- package/extensions/wp-agent-kit/index.ts +185 -10
- package/package.json +10 -14
- package/skills-custom/wp-wpengine/SKILL.md +398 -0
- package/skills-custom/wp-wpengine/references/ci-gate.md +469 -0
- package/skills-custom/wp-wpengine/references/github-actions-deploy.md +736 -0
- package/skills-custom/wp-wpengine/scripts/ci-gate.sh +118 -0
- package/skills-custom/wp-wpengine/scripts/wpe-check.sh +89 -0
- package/skills-custom/wp-wpengine/scripts/wpe-preflight.sh +104 -0
- package/.github/workflows/ci.yml +0 -44
- package/.husky/pre-commit +0 -7
- package/CLI_REVIEW.md +0 -250
- package/biome.json +0 -39
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
## GPL Compliance (Guideline 1 in Detail)
|
|
2
|
+
|
|
3
|
+
### Verification (Licensing)
|
|
4
|
+
|
|
5
|
+
- Every licensing-related issue must cite **Guideline 1** and include the specific file/license value found.
|
|
6
|
+
- License compatibility claims must match the GPL-Compatible Licenses table or the [GNU GPL-Compatible License List](https://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses).
|
|
7
|
+
- Use local `references/` files when present; otherwise use authoritative external URLs.
|
|
8
|
+
|
|
9
|
+
### Failure modes (Licensing)
|
|
10
|
+
|
|
11
|
+
- If a license is not listed in the compatibility tables, do not guess; check the [GNU license list](https://www.gnu.org/licenses/license-list.html) or escalate.
|
|
12
|
+
- If a plugin uses a dual-license model, verify both licenses independently.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Quick Reference: WordPress GPL Requirements
|
|
16
|
+
|
|
17
|
+
WordPress is licensed under **GPLv2 or later**. All plugins distributed via WordPress.org must be:
|
|
18
|
+
|
|
19
|
+
1. **100% GPL-compatible** (code, images, CSS, and all assets)
|
|
20
|
+
2. Include a **license declaration** in the main plugin file header
|
|
21
|
+
3. Include the **full license text** or a URI reference to it
|
|
22
|
+
4. **Not restrict freedoms** granted by the GPL
|
|
23
|
+
|
|
24
|
+
## GPL Versions Summary
|
|
25
|
+
|
|
26
|
+
| Version | Year | Key Addition |
|
|
27
|
+
|---------|------|--------------|
|
|
28
|
+
| GPLv1 | 1989 | Base copyleft: share-alike for modifications |
|
|
29
|
+
| GPLv2 | 1991 | Patent clause (Section 7), clearer distribution terms |
|
|
30
|
+
| GPLv3 | 2007 | Anti-tivoization, explicit patent grants, compatibility provisions |
|
|
31
|
+
|
|
32
|
+
WordPress uses **GPLv2 or later**, meaning plugins can use GPLv2, GPLv3, or "GPLv2 or later".
|
|
33
|
+
|
|
34
|
+
For full license texts, see:
|
|
35
|
+
- [GNU General Public License v1](https://www.gnu.org/licenses/gpl-1.0.html)
|
|
36
|
+
- [GNU General Public License v2](https://www.gnu.org/licenses/gpl-2.0.html)
|
|
37
|
+
- [GNU General Public License v3](https://www.gnu.org/licenses/gpl-3.0.html)
|
|
38
|
+
|
|
39
|
+
## License Compliance Checklist
|
|
40
|
+
|
|
41
|
+
When reviewing a plugin, verify:
|
|
42
|
+
|
|
43
|
+
- [ ] Main plugin file has a valid `License:` header (e.g., `GPL-2.0-or-later`, `GPL-2.0+`, `GPLv2 or later`)
|
|
44
|
+
- [ ] Main plugin file has a `License URI:` header pointing to the GPL text
|
|
45
|
+
- [ ] If bundled libraries exist, each has a GPL-compatible license
|
|
46
|
+
- [ ] No "split licensing" (e.g., code GPL but premium features proprietary)
|
|
47
|
+
- [ ] No additional restrictions beyond what GPL allows
|
|
48
|
+
- [ ] No clauses restricting commercial use, modification, or redistribution
|
|
49
|
+
- [ ] No obfuscated code (violates the spirit of source code availability)
|
|
50
|
+
|
|
51
|
+
## Valid License Headers for WordPress Plugins
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
License: GPL-2.0-or-later
|
|
55
|
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
License: GPL-3.0-or-later
|
|
60
|
+
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
License: GPLv2 or later
|
|
65
|
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Accepted Licenses by the WordPress.org Plugin Directory
|
|
69
|
+
|
|
70
|
+
Source: [Plugin Check - License_Utils trait](https://github.com/WordPress/plugin-check/blob/trunk/includes/Traits/License_Utils.php)
|
|
71
|
+
|
|
72
|
+
The Plugin Directory accepts licenses matching these identifiers (after normalization). The validation uses `is_license_gpl_compatible()` with the pattern:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
GPL|GNU|LGPL|MIT|FreeBSD|New BSD|BSD-3-Clause|BSD 3 Clause|OpenLDAP|Expat|Apache2|MPL20|ISC|CC0|Unlicense|WTFPL|Artistic|Boost|NCSA|ZLib|X11
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### GPL Family (recommended)
|
|
79
|
+
|
|
80
|
+
| Accepted Values | SPDX Identifier | License URI |
|
|
81
|
+
|-----------------|-----------------|-------------|
|
|
82
|
+
| `GPL-2.0-or-later`, `GPLv2 or later`, `GPL-2.0+` | GPL-2.0-or-later | https://www.gnu.org/licenses/gpl-2.0.html |
|
|
83
|
+
| `GPL-2.0-only`, `GPLv2` | GPL-2.0-only | https://www.gnu.org/licenses/gpl-2.0.html |
|
|
84
|
+
| `GPL-3.0-or-later`, `GPLv3 or later`, `GPL-3.0+` | GPL-3.0-or-later | https://www.gnu.org/licenses/gpl-3.0.html |
|
|
85
|
+
| `GPL-3.0-only`, `GPLv3` | GPL-3.0-only | https://www.gnu.org/licenses/gpl-3.0.html |
|
|
86
|
+
| `GNU General Public License` (any version text) | — | — |
|
|
87
|
+
| `LGPL-2.1`, `LGPLv2.1` | LGPL-2.1-or-later | https://www.gnu.org/licenses/lgpl-2.1.html |
|
|
88
|
+
| `LGPL-3.0`, `LGPLv3` | LGPL-3.0-or-later | https://www.gnu.org/licenses/lgpl-3.0.html |
|
|
89
|
+
|
|
90
|
+
### Other GPL-Compatible Licenses Accepted
|
|
91
|
+
|
|
92
|
+
| Identifier | License Name | Notes |
|
|
93
|
+
|------------|-------------|-------|
|
|
94
|
+
| `MIT` | MIT License | Permissive, compatible with GPLv2 and GPLv3 |
|
|
95
|
+
| `Expat` | Expat License | Functionally equivalent to MIT |
|
|
96
|
+
| `X11` | X11 License | Permissive; similar to Expat but with extra X Consortium clause |
|
|
97
|
+
| `FreeBSD` | BSD 2-Clause (FreeBSD) | Permissive, compatible with GPLv2 and GPLv3 |
|
|
98
|
+
| `New BSD`, `BSD-3-Clause`, `BSD 3 Clause` | BSD 3-Clause | Permissive, compatible with GPLv2 and GPLv3 |
|
|
99
|
+
| `Apache2`, `Apache-2.0` | Apache License 2.0 | Compatible with GPLv3 only (NOT GPLv2) |
|
|
100
|
+
| `MPL20`, `MPL-2.0` | Mozilla Public License 2.0 | Compatible via Section 3.3 |
|
|
101
|
+
| `ISC` | ISC License | Permissive, compatible with GPLv2 and GPLv3 |
|
|
102
|
+
| `OpenLDAP` | OpenLDAP Public License v2.7 | Permissive; older v2.3 is NOT compatible |
|
|
103
|
+
| `CC0` | Creative Commons Zero | Public domain dedication |
|
|
104
|
+
| `Unlicense` | The Unlicense | Public domain dedication |
|
|
105
|
+
| `WTFPL` | Do What The F*** You Want To Public License | Permissive, accepted in full text form too |
|
|
106
|
+
| `Artistic` | Artistic License 2.0 | Compatible via relicensing option in §4(c)(ii); Artistic 1.0 is NOT compatible |
|
|
107
|
+
| `Boost` | Boost Software License 1.0 | Lax permissive, compatible with GPLv2 and GPLv3 |
|
|
108
|
+
| `NCSA` | NCSA/University of Illinois Open Source License | Based on Expat + modified BSD; compatible with GPLv2 and GPLv3 |
|
|
109
|
+
| `ZLib` | zlib License | Permissive, compatible with GPLv2 and GPLv3 |
|
|
110
|
+
|
|
111
|
+
### Licenses NOT Accepted
|
|
112
|
+
|
|
113
|
+
Any license not matching the identifiers above will be rejected. Common rejections include:
|
|
114
|
+
|
|
115
|
+
- **Proprietary / All Rights Reserved**
|
|
116
|
+
- **Creative Commons BY-NC** (NonCommercial restriction)
|
|
117
|
+
- **Creative Commons BY-ND** (NoDerivatives restriction)
|
|
118
|
+
- **Creative Commons BY-SA** (v3.0 and earlier; v4.0 is one-way compatible with GPLv3 but not in the Plugin Check regex)
|
|
119
|
+
- **JSON License** ("shall be used for Good, not Evil")
|
|
120
|
+
- **SSPL** (Server Side Public License)
|
|
121
|
+
- **BSL** (Business Source License)
|
|
122
|
+
- **Commons Clause**
|
|
123
|
+
- **Elastic License**
|
|
124
|
+
- **Original BSD (4-clause)** — advertising clause incompatible with GPL
|
|
125
|
+
- **MPL-1.0** — only MPL 2.0 is GPL-compatible
|
|
126
|
+
- **EPL** (Eclipse Public License) — weak copyleft, incompatible with GPL
|
|
127
|
+
- **EUPL** (European Union Public License) — copyleft incompatible with GPL without multi-step relicensing
|
|
128
|
+
- **Artistic License 1.0** — vague wording makes it incompatible; use 2.0 instead
|
|
129
|
+
- **OpenLDAP v2.3** (old) — incompatible; v2.7 is accepted
|
|
130
|
+
|
|
131
|
+
## Common GPL Violations in Plugin Review
|
|
132
|
+
|
|
133
|
+
### 1. Split Licensing
|
|
134
|
+
Plugin claims GPL but restricts premium features:
|
|
135
|
+
- "Free version is GPL, premium is proprietary" - **VIOLATION**
|
|
136
|
+
- All code distributed must be GPL-compatible
|
|
137
|
+
|
|
138
|
+
### 2. Obfuscated Code
|
|
139
|
+
- Minified JavaScript is acceptable IF source is provided
|
|
140
|
+
- PHP obfuscation (ionCube, Zend Guard, etc.) - **VIOLATION** (prevents exercise of GPL freedoms)
|
|
141
|
+
- Encoded/encrypted PHP - **VIOLATION**
|
|
142
|
+
|
|
143
|
+
### 3. Missing License Information
|
|
144
|
+
- No license header in main file
|
|
145
|
+
- No license file in the package
|
|
146
|
+
- Bundled libraries without license documentation
|
|
147
|
+
|
|
148
|
+
### 4. Restrictive Clauses
|
|
149
|
+
- "You may not sell this plugin" - **VIOLATION** (GPL allows commercial redistribution)
|
|
150
|
+
- "You may not remove author credits" - Acceptable under GPLv3 Section 7(b), but not as blanket restriction
|
|
151
|
+
- "For personal use only" - **VIOLATION**
|
|
152
|
+
- "You must link back to our site" - **VIOLATION** (additional restriction)
|
|
153
|
+
|
|
154
|
+
### 5. Incompatible Library Inclusion
|
|
155
|
+
- Including code under GPL-incompatible licenses
|
|
156
|
+
- Using assets (images, fonts, CSS) under restrictive licenses
|
|
157
|
+
|
|
158
|
+
## Key GPL Concepts for Reviewers
|
|
159
|
+
|
|
160
|
+
### Distribution vs. Private Use
|
|
161
|
+
- GPL obligations activate upon **distribution** (conveying to others)
|
|
162
|
+
- Private modifications do NOT trigger GPL requirements
|
|
163
|
+
- Publishing on WordPress.org IS distribution
|
|
164
|
+
|
|
165
|
+
### Derivative Works
|
|
166
|
+
- A WordPress plugin that uses WordPress APIs is generally considered a derivative work
|
|
167
|
+
- Plugins that merely aggregate with WordPress may have different considerations
|
|
168
|
+
- When in doubt, the safe approach is GPL-compatible licensing
|
|
169
|
+
|
|
170
|
+
### Source Code Requirement
|
|
171
|
+
- GPL requires access to "complete corresponding source code"
|
|
172
|
+
- For WordPress plugins: all PHP, JS source files, build scripts
|
|
173
|
+
- Minified files must have corresponding source available
|
|
174
|
+
|
|
175
|
+
### The "Or Later" Clause
|
|
176
|
+
- "GPLv2 or later" allows users to choose GPLv2 OR any later version
|
|
177
|
+
- "GPLv2 only" means strictly GPLv2 (less flexible but valid)
|
|
178
|
+
- WordPress itself uses "GPLv2 or later"
|
|
179
|
+
|
|
180
|
+
## Violation Reporting Workflow
|
|
181
|
+
|
|
182
|
+
When a GPL violation is identified:
|
|
183
|
+
|
|
184
|
+
1. **Document the violation** precisely:
|
|
185
|
+
- Product name and version
|
|
186
|
+
- Distributor information
|
|
187
|
+
- Specific license terms violated
|
|
188
|
+
- Evidence (screenshots, code snippets)
|
|
189
|
+
|
|
190
|
+
2. **Contact the copyright holder** first
|
|
191
|
+
3. **Report to FSF** if the code is FSF-copyrighted: license-violation@gnu.org
|
|
192
|
+
4. **For WordPress.org plugins**: flag through the plugin review process
|
|
193
|
+
|
|
194
|
+
## Frequently Asked Questions
|
|
195
|
+
|
|
196
|
+
For comprehensive GPL FAQ answers, see the [GNU GPL FAQ](https://www.gnu.org/licenses/gpl-faq.html).
|
|
197
|
+
|
|
198
|
+
Common questions during plugin review:
|
|
199
|
+
|
|
200
|
+
**Can a plugin charge money and still be GPL?**
|
|
201
|
+
Yes. GPL allows charging for distribution. The requirement is that recipients get GPL freedoms (use, modify, redistribute).
|
|
202
|
+
|
|
203
|
+
**Does a plugin need to include the full GPL text?**
|
|
204
|
+
GPLv2 Section 1 and GPLv3 Section 4 require giving recipients a copy of the license. A URI reference in the header plus including a LICENSE file is standard practice.
|
|
205
|
+
|
|
206
|
+
**Can a plugin restrict who uses it?**
|
|
207
|
+
No. GPL explicitly prohibits additional restrictions on recipients. "For personal use only" or "non-commercial" clauses are incompatible.
|
|
208
|
+
|
|
209
|
+
**Is minified JS without source a violation?**
|
|
210
|
+
If the plugin only distributes minified JS without any way to obtain the source, this conflicts with GPL's source code requirements. The source should be available (in the package or via a repository).
|
|
211
|
+
|
|
212
|
+
**Can a plugin use CC-BY-SA images?**
|
|
213
|
+
CC-BY-SA 4.0 is one-way compatible with GPLv3 (CC-BY-SA material can be included in GPLv3 works). CC-BY-SA 3.0 is NOT compatible.
|
|
214
|
+
|
|
215
|
+
**What about fonts bundled in plugins?**
|
|
216
|
+
Fonts must be under GPL-compatible licenses. Common acceptable font licenses: OFL (SIL Open Font License), Apache 2.0 (with GPLv3), MIT, GPL with font exception.
|
|
217
|
+
|