[wp-hackers] Bug: admin_head called early

Elliotte Harold elharo at metalab.unc.edu
Fri Apr 13 21:55:22 GMT 2007


Peter Westwood wrote:

> Please can you supply example code that demonstrates this issue.
> 
> Reviewing the code in question sheds no light on the problem
> 
> Cheers
> 
> westi

Installing this simple plug-in will do the trick: (I do not promise it 
won;t break anything)


<?php

/*
Plugin Name: SemButtons
Version: 0.1
Plugin URI: http://www.elharo.com/SemButtons.html
Description: This plugin makes the Wordpress editor button bar more 
semantic.
Author: Elliotte Rusty Harold
Author URI: http://www.elharo.com/
Update:
*/

	add_action('admin_menu', 'remove_buttons');


	function remove_buttons(){
		?>
<style type="text/css">#ed_lookup, #ed_spell { display:none; } </style>
         <?php
	}

?>



-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


More information about the wp-hackers mailing list