/gist:9649e00c6acec8805f39 Secret
Created
August 22, 2012 22:29
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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