lubuntu.me/plugins/404page/uninstall.php

12 lines
316 B
PHP
Raw Normal View History

2016-11-28 21:52:15 -08:00
<?php
// 404page uninstall
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || ! WP_UNINSTALL_PLUGIN || dirname( WP_UNINSTALL_PLUGIN ) != dirname( plugin_basename( __FILE__ ) ) ) {
status_header( 404 );
exit;
}
include_once plugin_dir_path( __FILE__ ) . '404page.php';
$smart404page->uninstall();
?>