Skip to content

@sreed-ontraport /gist:9649e00c6acec8805f39 secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<?php
/*
Plugin Name: Plugin Test
Plugin URI: http://core.trac.wordpress.org/ticket/21602
Description: Plugin Test for WP bug #21602
Version: 1.0.0
Author: Scott Reed
Author URI: http://officeautopilot.com/
Text Domain: plugintest
Copyright:
*/
if(defined("ABSPATH")) {
include_once(ABSPATH.WPINC.'/class-http.php');
include_once(ABSPATH.WPINC.'/registration.php');
register_activation_hook(__FILE__, "enable_plugintest");
register_deactivation_hook(__FILE__, "disable_plugintest");
$plugintest = new PluginTest;
}
class PluginTest {
const VERSION = "1.0.0";
const WP_MIN = "3.0.0";
const NSPACE = "_plugintest_";
function __construct() {
$this->bind_hooks();
}
private function bind_hooks() {
add_action('wp', array(&$this, 'post_process'));
}
function post_process() {
is_front_page();
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.