| | 47 | ] |
| | 48 | } |
| | 49 | } |
| | 50 | }}} |
| | 51 | |
| | 52 | Illustrative example: Calls to External Networks |
| | 53 | |
| | 54 | In this example, a plugin author would like to disclose that their code makes calls to external networks. |
| | 55 | The 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" |