PluginProbe
PlugVersions – Easily roll back to previous versions of your plugins. / 0.2.1
PlugVersions – Easily roll back to previous versions of your plugins. v0.2.1
0.0.6.RC-1 0.0.7 0.0.8 0.1.0 0.2.0 0.2.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6
plugversions / uninstall.php

uninstall.php in PlugVersions – Easily roll back to previous versions of your plugins. 0.2.1, at uninstall.php

18 lines 499 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if( !defined( 'WP_UNINSTALL_PLUGIN' ) ){
3 die;
4 }
5
6 if( !defined( 'PLUGIN_REVISIONS_PLUGIN_DIR' ) ){
7 define( 'PLUGIN_REVISIONS_PLUGIN_DIR',untrailingslashit( dirname( __FILE__ ) ) );
8 }
9
10 if( ! function_exists( 'eos_plugin_revisions_remove_all_versions' ) ){
11 require_once PLUGIN_REVISIONS_PLUGIN_DIR.'/plugversions.php';
12 }
13
14 if( function_exists( 'eos_plugin_revisions_remove_all_versions' ) ){
15 eos_plugin_revisions_remove_all_versions();
16 }
17
18 delete_site_option( 'plugin_revisions' );