Changeset 18380 for trunk/wp-admin/includes/post.php
- Timestamp:
- 06/30/2011 07:23:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r18369 r18380 1793 1793 <?php 1794 1794 1795 $media_link_type = 'image'; 1796 if ( is_multisite() && ( ( ! $mu_media_buttons = get_site_option( 'mu_media_buttons' ) ) || empty( $mu_media_buttons['image'] ) ) ) 1797 $media_link_type = 'media'; 1798 1795 1799 $buttons = array( 1796 1800 // format: title, onclick, show in both editors … … 1802 1806 '1' => 'separator', 1803 1807 'blockquote' => array( 'title' => __('Blockquote (Alt+Shift+Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ), 1804 'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#add_ image').click();", 'both' => true ),1808 'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#add_{$media_link_type}').click();", 'both' => true ), 1805 1809 '2' => 'separator', 1806 1810 'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ),
Note: See TracChangeset
for help on using the changeset viewer.