How do I remove the ugly and very annoying Browse Happy icon, besides not using IE because that's not an option.
How do I remove the ugly and very annoying Browse Happy icon, besides not using IE because that's not an option.
A quick search of the forums shows this thread:
I did a little searching, just thorw this one line in a file in mu-plugins and that should do the trick, it's:
remove_action('admin_footer', 'browse_happy');
hmmm wierd in theory it should counteract where they add_action() to add it but it's still there.
Try this, it may help:
remove_action('admin_footer', 'browse_happy', 11);
I did something the other day with a remove action, and had to force it to fire at a lower priority.
hmm odd, still there
$priority
(int) (optional) The priority of the function (as defined when the function was originally hooked).
Sounds to me the priority must match the add_action priority which unless the code has changed from what I saw posted elsewhere on these forums no priority is given when it's added.
Browse Happy is a persistant lil bugger isn't it
EDIT: oh i skipped a parameter: $tag
(string) (required) The action hook to which the function to be removed is hooked.
Default: None
anyone know what that means, i'm not sure..lol
The "tag" is what the function you are removing is hooking into. So if the add_action hooks into the wp_footer call, you would want the first parameter to be wp_footer. For this, it's admin_footer.
Have you double checked where browse happy is called, and verified it's original parameters?
I see now, I had a tag all along I just didn't realize it's called a tag, anyway I think I found the issue, they use
add_action( 'in_admin_footer', 'browse_happy' );
So i did
remove_action( 'in_admin_footer', 'browse_happy' );
i also tried
remove_action( 'in_admin_footer', 'browse_happy', 11 );
This should work, but
For some strange reason its still hanging out in the admin footer, so I decided I will just hack the core to remove it.
Thanks for your help.
heh Which is what we all did in the first place. :)
eh i'm lazy i don't want to have to do it everytime I upgrade, but for now that seems to be easiest, its either that or buy a subscription to that mpmudev site for that one plugin not exactly most economical
*shrug* We have a list of 13 changes we make to the mu platform. Takes five minutes every few months.
And considering we're moving to SVN for all of our platforms, it probably won't even involve that anymore. (Here's hoping.)
That's what I do as well. More for upgrading than anything.
Pull down the difference from the last time I synced, then patch the local copy I have in SVN, then verify it's operational, then merge, so on and so forth.
By the way, I believe the hook is "in_admin_footer".
I note though that a recent change (Search for browse_happy) shows that a modification was made to the template file but the add_action was removed to apply it.
I'm not seeing the icon in 2.7 and a quick grep doesn't show any use of "in_admin_footer" or the function itself anywhere in the code.
Ditto on regular wordpress as well.
I'm going to get lynched for that, aren't I? :)