Make WordPress Core

Changes between Version 6 and Version 7 of Ticket #51156


Ignore:
Timestamp:
08/31/2020 01:45:25 PM (5 years ago)
Author:
carike
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51156 – Description

    v6 v7  
    4545         "http://www.apache.org/licenses/LICENSE-2.0.html",
    4646         "https://ubuntu.com/legal/font-licence"
     47      ]
     48   }
     49}
     50}}}
     51
     52Illustrative example: Calls to External Networks
     53
     54In this example, a plugin author would like to disclose that their code makes calls to external networks.
     55The author would like to include the following in a file named disclosures.json in the plugin's main folder to indicate that:
     56- The code includes an external reference to the developer's own site (if the user opts in to send tracking data) in the PHP;
     57- The code includes an external reference to Google Analytics in the JavaScript;
     58- The code includes an external reference to Google Fonts in the CSS.
     59
     60{{{#!php
     61<?php
     62{
     63   "policies": {
     64      "PHP": [
     65         "https://developersite.example.com/privacy-policy/"
     66      ],
     67      "JavaScript": [
     68         "https://policies.google.com/privacy"
     69      ],
     70      "CSS": [
     71         "https://policies.google.com/privacy"
    4772      ]
    4873   }