iframe_header( __( 'Plugin Reactivation'
), true
);
if ( isset( $_GET['success'
] ) ) { echo '<p>' .
__( 'Plugin reactivated successfully.'
) . '</p>';
} if ( isset( $_GET['failure'
] ) ) { echo '<p>' .
__( 'Plugin failed to reactivate due to a fatal error.'
) . '</p>';
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR
);
ini_set( 'display_errors', true
); // Ensure that fatal errors are displayed.
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' .
$plugin );
include WP_PLUGIN_DIR . '/' .
$plugin;
} iframe_footer();
} elseif ( 'install-plugin' ===
$action ) { if ( !
current_user_can( 'install_plugins'
) ) { wp_die( __( 'Sorry, you are not allowed to install plugins on this site.'
) );
} require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; // For plugins_api().