Skip to content

Instantly share code, notes, and snippets.

@kurtpayne
Created December 3, 2013 15:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurtpayne/7770559 to your computer and use it in GitHub Desktop.
Save kurtpayne/7770559 to your computer and use it in GitHub Desktop.
Super subtle troll
<?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 );
}
} );
@helen
Copy link

helen commented Dec 3, 2013

Needs to be foreach ( $wp_filter as $tag => &$filter ) 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment