diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-22 11:31:30 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-22 11:31:30 +0000 |
commit | 9c541a83408a537abb8807761eca8f228de91238 (patch) | |
tree | 7e3688bc73f44f9b7d9070dc57740e4ae8478a92 /wp-includes | |
parent | dac1550c16caa4efadaac5290d77dd0bc678a59a (diff) | |
download | wordpress-mu-9c541a83408a537abb8807761eca8f228de91238.tar.gz wordpress-mu-9c541a83408a537abb8807761eca8f228de91238.tar.xz wordpress-mu-9c541a83408a537abb8807761eca8f228de91238.zip |
Remove media button from tinymce editor because movie embed codes are stripped by default, fixes #606
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1392 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
-rw-r--r-- | wp-includes/wpmu-functions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 67fc456..a2b64f5 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1944,4 +1944,10 @@ function maybe_redirect_404() { } } add_action( 'template_redirect', 'maybe_redirect_404' ); + +function remove_tinymce_media_button( $buttons ) { + unset( $buttons[ array_search( 'media', $buttons ) ] ); + return $buttons; +} +add_filter( 'mce_buttons_2', 'remove_tinymce_media_button' ); ?> |