<?php

/*
Plugin Name: 12492 Example Plugin
Plugin URI: https://core.trac.wordpress.org/ticket/12492
Description: This plugin shows the variable variable bug in remove_all_filters
Author: Chris Jean
Version: 1.0.0
Author URI: http://gaarai.com/
*/


add_action( 'template_redirect', 'show_bug' );
add_action( 'template_redirect', 'show_bug', 20 );
add_action( 'template_redirect', 'show_bug', 30 );

// Remove only the action(s) on the default priority
remove_all_actions( 'template_redirect', 10 );

function show_bug() {
	echo "<h1>This should render twice.</h1>\n";
}


?>
