WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/04/2010 08:00:18 PM (11 years ago)
Author:
ryan
Message:

Integrate remove_tinymce_media_button() into wp_tiny_mce(). see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r12944 r12954  
    14081408        $mce_buttons = implode($mce_buttons, ',');
    14091409
    1410         $mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'media', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo', 'wp_help' ));
     1410        $mce_buttons_2 = array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'media', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo', 'wp_help' );
     1411        if ( is_multisite() )
     1412            unset( $mce_buttons_2[ array_search( 'media', $mce_buttons_2 ) ] );
     1413        $mce_buttons_2 = apply_filters('mce_buttons_2', $mce_buttons_2);
    14111414        $mce_buttons_2 = implode($mce_buttons_2, ',');
    14121415
Note: See TracChangeset for help on using the changeset viewer.