Make WordPress Core

Changes between Version 3 and Version 5 of Ticket #51156


Ignore:
Timestamp:
08/31/2020 08:03:03 AM (4 years ago)
Author:
carike
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51156 – Description

    v3 v5  
    4242      ],
    4343      "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"
     44         "https://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web",
     45         "http://www.apache.org/licenses/LICENSE-2.0.html",
     46         "https://ubuntu.com/legal/font-licence"
    4547      ]
     48   }
     49}
     50}}}
     51
     52Illustrative example: Database Management
     53
     54In this example, a plugin author would like to disclose how their code interacts with the site's database(s).
     55The author would include the following in a file named disclosures.json in the plugin's main folder to indicate that:
     56- The plugin does not write information to the database that was not explicitly input by a(n authorized) user;
     57- The plugin does write information to the database that was explicitly input by a(n authorized) user;
     58- The plugin creates a Custom Post Type called ExampleCPT;
     59- The plugin allows a(n authorized) user to create their own Custom Post Types;
     60- The plugin creates a custom table called PluginTable;
     61- The plugin allows a(n authorized) user to create their own custom tables.
     62
     63{{{#!php
     64<?php
     65{
     66   "database": {
     67      "writesToDB: {
     68         "auto": [
     69            FALSE
     70         ],
     71         "manual": [
     72            TRUE,
     73            "edit_private_posts"
     74         ]
     75      },
     76      "CPT": {
     77         "auto": [
     78            TRUE,
     79            "ExampleCPT"
     80         ],
     81         "manual": [
     82            TRUE,
     83            "delete_private_posts"
     84         ]
     85      },
     86      "customTables": {
     87         "auto": [
     88            TRUE,
     89            "PluginTable"
     90         ],
     91         "manual": [
     92            TRUE,
     93            "delete_plugins"
     94         ]
     95      }
    4696   }
    4797}
     
    96146   "monetization": {
    97147      "upsells": [
    98          TRUE, "https://example.com/ToS/devsite/"
     148         TRUE,
     149         "https://example.com/ToS/devsite/"
    99150      ],
    100151      "donations": [
     
    102153      ],
    103154      "backlinks": [
    104          TRUE, "https://example.com/ToS/devsite/"
     155         TRUE,
     156         "https://example.com/ToS/devsite/"
    105157      ],
    106158      "affiliates": [