WordPress.org

Make WordPress Core

Ticket #17992: 17992.diff

File 17992.diff, 1.1 KB (added by solarissmoke, 3 years ago)

Fix add image button in DFW

  • wp-includes/class-wp-editor.php

     
    607607                        'numlist' => array( 'title' => __('Ordered list (Alt + Shift + O)'), 'onclick' => 'fullscreen.ol();', 'both' => false ), 
    608608                        '1' => 'separator', 
    609609                        'blockquote' => array( 'title' => __('Blockquote (Alt+Shift+Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ), 
    610                         'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#add_{$media_link_type}').click();", 'both' => true ), 
     610                        'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#content-add_{$media_link_type}').click();", 'both' => true ), 
    611611                        '2' => 'separator', 
    612612                        'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ), 
    613613                        'unlink' => array( 'title' => __('Unlink (Alt + Shift + S)'), 'onclick' => 'fullscreen.unlink();', 'both' => false ),