Plugin name/translation bug in Privacy Policy Guide
-
Hi @shandelierrr,
Below 2 minor Privacy Policy Guide bugs. Please pass these on to your developers.
1. The title (plugin name) of the added privacy policy is not translated on the Privacy Policy Guide page.
2. The title (plugin name) of the added privacy policy does not distinguish between free/pro plugin on the Privacy Policy Guide page.
Basically it always shows “iThemes Security”.To fix these issues replace the admin_init() method with the code below in the core/modules/privacy/class-itsec-privacy.php file:
public function admin_init() { if ( function_exists( 'wp_add_privacy_policy_content' ) ) { $plugin_name = ITSEC_Core::get_plugin_name(); $domain = ITSEC_Core::is_pro()?'it-l10n-ithemes-security-pro':'better-wp-security'; wp_add_privacy_policy_content( translate( $plugin_name, $domain ), $this->get_privacy_policy_content() ); } }
Note it is perfectly ok to use the translate() function (instead of eg __()) with strings (like plugin name) that are included in the headers of the main plugin file.
- The topic ‘Plugin name/translation bug in Privacy Policy Guide’ is closed to new replies.