WordPress.org

Make WordPress Core

Ticket #43750: 43750.diff

File 43750.diff, 1.4 KB (added by desrosj, 2 years ago)

Add support for Privacy header in plugins.

  • src/wp-admin/includes/plugin.php

     
    3131 *     Network: Optional. Specify "Network: true" to require that a plugin is activated
    3232 *          across all sites in an installation. This will prevent a plugin from being
    3333 *          activated on a single site when Multisite is enabled.
     34 *     Privacy: Optional. How the plugin integrates with core privacy features, if at all.
     35 *          If nothing is specified, "unknown" will be assumed.
    3436 *      * / # Remove the space to close comment
    3537 *
    3638 * Some users have issues with opening large files and manipulating the contents
     
    6365 *     @type string $TextDomain  Plugin textdomain.
    6466 *     @type string $DomainPath  Plugins relative directory path to .mo files.
    6567 *     @type bool   $Network     Whether the plugin can only be activated network-wide.
     68 *     @type string $Privacy     How the plugin integrates with core privacy features.
    6669 * }
    6770 */
    6871function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {
     
    7780                'TextDomain'  => 'Text Domain',
    7881                'DomainPath'  => 'Domain Path',
    7982                'Network'     => 'Network',
     83                'Privacy'     => 'Privacy',
    8084                // Site Wide Only is deprecated in favor of Network.
    8185                '_sitewide'   => 'Site Wide Only',
    8286        );