[wp-hackers] "The Matrix Has You" easter egg

Otto otto at ottodestruct.com
Fri Oct 22 14:54:14 UTC 2010


On Fri, Oct 22, 2010 at 9:29 AM, Eric Mann <eric at eam.me> wrote:
> As entertaining as the feature might be ... is there any way I can turn it
> off on a client site?  I have a custom drop-in plug-in I use on all my
> client sites that I can add some script to; I just think preemptively
> removing a feature that could cause confusion among the non tech-savvy would
> be easier than explaining why it's funny after a mild meltdown.  I doubt I'd
> remove it for the vast majority of my clients (everyone else so far has
> found it hilarious), but there will always be a few I'd like to "shelter"
> just to be safe.

You should be able to hook to "admin_action_diff" and thus intercept
the revision comparison action before it happens. If $_POST['left'] ==
$_POST['right'], then it's getting ready to show the easter egg. To
stop it from happening, change one of the left or right's to a
different number.

-Otto


More information about the wp-hackers mailing list