=== allow-reinstalls ===
Contributors: bobbingwide
Donate link: https://www.oik-plugins.com/oik/oik-donate/
Tags: upload, plugin, theme
Requires at least: 4.3.0
Tested up to: 6.8.0
Stable tag: 0.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Gutenberg compatible: Yes

== Description ==
Allows plugins and themes to be updated using the standard WordPress plugin or theme update process.

When you want to update a custom plugin or theme but don't have an automated process
then you can use this plugin to allow you to install a new version of a plugin or theme
without having to delete the existing plugin or theme.

Tested with WordPress 6.4 and WordPress MultiSite.
Note: This plugin is no longer necessary. WordPress core functionality allows you to update existing plugins and themes.


== Installation ==
1. Upload the contents of the allow-reinstalls plugin to the `/wp-content/plugins/allow-reinstalls` directory
1. Do nothing until you want to update another plugin or theme.


If you've attempted to upload a plugin and you've received the message that says

`
Destination folder already exists. path-to/wp-content/plugins/your-plugin/

Plugin install failed.
`

or you've attempted to upload a theme and got

`
Destination folder already exists. path-to/wp-content/themes/your-theme/

Theme install failed.
`

then you need to


1. Activate the allow-reinstalls plugin through the 'Plugins' menu in WordPress.
1. Upload the plugin or theme you want to replace.
1. Deactivate the allow-reinstalls plugin.

== Frequently Asked Questions ==

= Does this work on WordPress MultiSite? =
Yes. Use it as a super administrator.

= Can I downgrade a plugin or theme? =
You'll be able to do it, but whether or not the system works afterwards depends on the plugin or theme.

= Can I leave the plugin active? =
No point. 

= Why doesn't WordPress allow this anyway? =
It does now.

Safety and security; just in case you overwrite the latest version with a back level.

WordPress expects to receive most of its updates automatically, not via a manual upload process.

= Where can I read more? =

[allow-reinstalls on oik-plugins](http://www.oik-plugins.com/oik-plugins/allow-reinstalls)


== Screenshots ==
1. Upload fails when allow-reinstalls is already installed but inactive
2. Try again after activating the allow-reinstalls plugin
3. Upload succeeds this time.

== Upgrade Notice ==
= 0.1.0 =
Tested with WordPress 6.8 and PHP 8.4

= 0.0.5 =
Tested with WordPress 6.4 and PHP 8.2

= 0.0.4 =
Tested with WordPress 6.3

= 0.0.3 = 
Tested with WordPress 5.3

= 0.0.2 = 
Tested with WordPress 4.7.

= 0.0.1 = 
Tested with WordPress 4.6. Used to apply updates to plugins such as oik-weight-zone-shipping-pro.

= 0.0.0 =
New plugin, also available from GitHub and oik-plugins.

== Changelog ==
= 0.1.0 = 
* Changed: Update .gitignore. #2
* Changed: Update PHPUnit tests for PHPUnit 10 & 11 #2
* Tested: With WordPress 6.8 and WordPress Multisite
* Tested: With PHP 8.3 and PHP 8.4
* Tested: With PHPUnit 9, 10, & 11

= 0.0.5 = 
* Tested: With PHP 8.1 and PHP 8.2 #2
* Tested: With WordPress 6.4 and WordPress Multisite
* Tested: With PHP Unit 9.6

= 0.0.4 =
* Tested: With WordPress 6.3
* Tested: With PHPUnit 9
* Tested: With PHP 8.0

= 0.0.3 = 
* Tested: With PHPUnit 8
* Tested: With WordPress 5.3
* Tested: With PHP 7.3 and PHP 7.4

= 0.0.2 = 
* Changed: The PHPUnit tests in the GitHub version for WordPress 4.7 compatibility. See [github bobbingwide	oik-batch issue 16]
* Tested: With WordPress 4.7 

= 0.0.1 = 
* Changed: Added PHPUnit tests in the GitHub version [github bobbingwide allow-reinstalls issues 1]
* Tested: With WordPress 4.6 

= 0.0.0 =
* Added: New plugin - to allow oik-weightcountryshipping-pro to be updated using WordPress Plugin Install