From 4b8569b2357ad8fd2e912b74343bfd4a2a5d4852 Mon Sep 17 00:00:00 2001
From: Vladimir Ivanov <ivanov.bg@gmail.com>
Date: Tue, 11 Sep 2018 00:45:38 +0300
Subject: [PATCH] Added check for constant existence
---
wp-admin/includes/plugin.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git wp-admin/includes/plugin.php wp-admin/includes/plugin.php
index c898fc5..3a86691 100644
|
|
function uninstall_plugin( $plugin ) { |
1074 | 1074 | } |
1075 | 1075 | unset( $uninstallable_plugins ); |
1076 | 1076 | |
1077 | | define( 'WP_UNINSTALL_PLUGIN', $file ); |
| 1077 | if (!defined('WP_UNINSTALL_PLUGIN')) { |
| 1078 | define('WP_UNINSTALL_PLUGIN', true); |
| 1079 | } |
1078 | 1080 | wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); |
1079 | 1081 | include( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ); |
1080 | 1082 | |