'AuthorURI' => 'Author URI',
'TextDomain' => 'Text Domain',
'DomainPath' => 'Domain Path',
'Network' => 'Network',
'RequiresWP' => 'Requires at least',
'RequiresPHP' => 'Requires PHP',
'UpdateURI' => 'Update URI',
// Site Wide Only is deprecated in favor of Network.
'_sitewide' => 'Site Wide Only',
);
$plugin_data =
get_file_data( $plugin_file,
$default_headers, 'plugin'
);
// Site Wide Only is the old header for Network.
if ( !
$plugin_data['Network'
] &&
$plugin_data['_sitewide'
] ) { /* translators: 1: Site Wide Only: true, 2: Network: true */
_deprecated_argument( __FUNCTION__, '3.0.0',
sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.'
), '<code>Site Wide Only: true</code>', '<code>Network: true</code>'
) );
$plugin_data['Network'
] =
$plugin_data['_sitewide'
];
} $plugin_data['Network'
] =
( 'true' ===
strtolower( $plugin_data['Network'
] ) );
unset( $plugin_data['_sitewide'
] );
// If no text domain is defined fall back to the plugin slug.