secret

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<?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();
}
}
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.