So, I've read through this question about licensing of PHP code under the GPL v2. As well as the compromise of the Thesis theme developer, as far as licensing all PHP under the GPL, but copyrighting js, css, images, etc.
My question is does ALL php have to be GPL?
Consider this scenario:
- the php that generates the wp content/layout is under GPL
- the JS is copyrighted (similar to the question linked above)
- the JS makes AJAX requests to php code that generates certain data
- this data-generating php code uses it's own datalayer (not wordpress's) and uses no wordpress code.
Can the data-generating php (separated into a different folder within the theme) be licensed other than GPL?