summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/wpmu-functions.php6
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' );
?>