Created
December 3, 2013 15:00
-
-
Save kurtpayne/7770559 to your computer and use it in GitHub Desktop.
Super subtle troll
This file contains hidden or 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: Rarst's favorite plugin | |
* Description: SHUT UP | |
* Version: INF | |
* Author: The unholy army of trolls | |
* License: GPLv2 or MIT (they're equivalent, right?) | |
*/ | |
add_action( 'all', function() { | |
global $wp_filter; | |
foreach ( $wp_filter as $tag => $filter ) { | |
shuffle( $filter ); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needs to be
foreach ( $wp_filter as $tag => &$filter )
😉