[wp-trac] [WordPress Trac] #30035: Can't put buttons in the Publish meta box

WordPress Trac noreply at wordpress.org
Wed Nov 26 16:24:36 UTC 2014


#30035: Can't put buttons in the Publish meta box
--------------------------+-----------------------------------------
 Reporter:  ericlewis     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by ericlewis):

 attachment:30035.mov shows what putting a button in the Publish meta box
 does.

 Clicking our button adds
 [https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-
 admin/js/post.js?annotate=blame#L432 the callback] that's only intended
 for the submit button, so when Preview button is clicked, this callback
 runs unintentionally, and disables the submit buttons.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30035#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list