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

WordPress Trac noreply at wordpress.org
Wed Nov 26 16:45:21 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 adamsilverstein):

 Replying to [comment:4 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
 only to be added when the submit button is clicked, so when Preview button
 is clicked, this callback runs unintentionally, and disables the submit
 buttons.

 Makes sense; wondering why :button was used in the first place, agree
 seems overly aggressive!

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


More information about the wp-trac mailing list