Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #51156


Ignore:
Timestamp:
08/28/2020 10:09:33 AM (5 years ago)
Author:
carike
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51156 – Description

    v2 v3  
    2222
    2323**The Solution:**
     24
     25Illustrative example: Licensing
     26
     27In this example, a theme author would like to disclose the licenses that apply to the theme and its assets.
     28The author would include the following in a file named disclosures.json in the theme's main folder to indicate that:
     29- Their theme itself is licensed under the General Public License version 2;
     30- They make use of images, which are locally included in the theme, all of which they found on the "My Stock Photos" site;
     31- They make use of the Google Fonts CDN to serve the Andika, Cousine fonts and Ubuntu fonts.
     32
     33{{{#!php
     34<?php
     35{
     36   "licenses": {
     37      "code": [
     38         "https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html"
     39      ],
     40      "localAssets": [
     41         "https://creativecommons.org/publicdomain/zero/1.0/legalcode"
     42      ],
     43      "remoteAssets": [
     44         "https://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web", "http://www.apache.org/licenses/LICENSE-2.0.html", "https://ubuntu.com/legal/font-licence"
     45      ]
     46   }
     47}
     48}}}
    2449
    2550Illustrative example: Compatibility