[wp-trac] [WordPress Trac] #33257: Wp Editor front end missing add media button

WordPress Trac noreply at wordpress.org
Tue Aug 4 09:04:35 UTC 2015


#33257: Wp Editor front end missing add media button
--------------------------+-----------------------------
 Reporter:  alexandruias  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is the code that I use to setup the wp editor in front-end.You can
 paste in a theme file.
 {{{
 <?php $content = 'none';

 $settings = array(
         'media_buttons' => true,
         'drag_drop_upload' => true,
 );

 $editor_id ='customusername';

 echo '<div style="float:right;max-width:600px">';
 wp_editor($content,$editor_id,$settings);
 echo '</div>';?>
 }}}
 In 4.2.3 the editor shows the add media button but the latest trunk
 doesn't.
 In the trunk I can see with inspect element that is trying to generate the
 add media button but is only an empty div.

 {{{
 <div id="wp-customusername-media-buttons" class="wp-media-buttons"></div>
 }}}
 Everything is default no theme or plugin installed or activated.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33257>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list