Use code from bundled themes in my theme and resell it

Since a while I have started comparing frameworks for wordpress in order to understand the way wordpress works.

Now that I understand the code more clearly, I have compared it to the twentythirteen and twentyfourteen themes bundled with wordpress.

I came to understand that quite alot of the code seems to be the same, apart from the functions they all seem to use and call for.

Can I do the same thing, using code from those themes?

I'm sorry if this question has already been asked before, just didnt see it anywhere on this site...

Any suggestions to this issue?

Topic theme-twenty-thirteen Wordpress

Category Web


I just want to add to @Rarst answer.

I came to understand that quite a lot of the code seems to be the same

Yes, the bundled themes are written by the Wordpress team, so you would expect the coding styles between the bundled themes to be the same.

Can I do the same thing, using code from those themes?

This was handled by @Rarst, but I would like to add to this. The bundled themes are showcases of new functionalities within Wordpress. These themes are used to target these new functionalities and the correct uses there of

Furthermore, these themes suggest the correct way how a theme should be written according to coding standards, although this is not the alpha and omega to coding standards as such.

These bundled themes offer a perfect base for theme developers to create their own themes on, and I believe that is why they should be used for. I've personally combined the twentytwelve and twentyfourteen themes as a base for my previous theme I developed. But you have to keep @Rarst answer in consideration here.

This is just a little useless info, but I always like to add some form of credit to these themes, something in the lines of

This theme is based and written using the twentyfourteen theme as a base........

in my stylesheet under Description


Themes bundled with WordPress are licensed under "GPLv2 or any later version" in full (both code and assets).

You can reuse and resell that code, as long as you abide by the GPL license, effectively meaning — resulting product's code (and assets if you use them) must be under either of:

  • GPLv2 or later
  • GPLv2 strict
  • GPLv3

with all the implications of.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.