first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
$plugin_file = "polylang/polylang.php";
|
||||
$deactivate_link = wp_nonce_url('plugins.php?action=deactivate&plugin='.urlencode($plugin_file ).'&plugin_status=all&paged=1&s=', 'deactivate-plugin_' . $plugin_file);
|
||||
|
||||
?>
|
||||
<div class="error settings-error notice is-dismissible">
|
||||
<p>
|
||||
<?php
|
||||
/* translators: 1 is a plugin name, 2 is Weglot version, 3 is current php version. */
|
||||
echo sprintf( esc_html__( '%1$s %2$s.', 'weglot' ), '<strong>Polylang</strong>', 'plugin is activated. It creates compatibility issues with Weglot, we recommend to deactivate it to use Weglot' );
|
||||
?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="<?php echo $deactivate_link; //phpcs:ignore ?>" class="button">
|
||||
<?php echo esc_html__( 'Deactivate Polylang plugin', 'weglot' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user