WordPress.org

Make WordPress Core

Ticket #17942: 17942-2.patch

File 17942-2.patch, 1.5 KB (added by azaozz, 3 years ago)
  • wp-admin/includes/post.php

     
    17921792                <div id="wp-fullscreen-button-bar"><div id="wp-fullscreen-buttons" class="wp_themeSkin"> 
    17931793<?php 
    17941794 
     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 
    17951799        $buttons = array( 
    17961800                // format: title, onclick, show in both editors 
    17971801                'bold' => array( 'title' => __('Bold (Ctrl + B)'), 'onclick' => 'fullscreen.b();', 'both' => false ), 
     
    18011805                'numlist' => array( 'title' => __('Ordered list (Alt + Shift + O)'), 'onclick' => 'fullscreen.ol();', 'both' => false ), 
    18021806                '1' => 'separator', 
    18031807                '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 ), 
    18051809                '2' => 'separator', 
    18061810                'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ), 
    18071811                'unlink' => array( 'title' => __('Unlink (Alt + Shift + S)'), 'onclick' => 'fullscreen.unlink();', 'both' => false ),