[wp-trac] [WordPress Trac] #21563: "Save as" button disappearing on edit/new post screens

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 13 15:47:58 UTC 2012


#21563: "Save as" button disappearing on edit/new post screens
--------------------------+------------------------------
 Reporter:  F J Kaiser    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  UI            |     Version:  3.4.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by F J Kaiser):

 @ipstenu You're slightly missing what core is doing (took me a while too).

 Situation:
 1. You switch from "public" » "private".
 2. {{{~/wp-admin/js/post(.dev).js}}} gets involved.
 3. {{{$.click()}}} 1) handler triggers the {{{updateText();}}} function.
 4. As there's no history tracking, the post gets moved to published - even
 when not.

 This makes a post(type) go public without intention - confirmed in latest
 3.5 trunk.

 Currently working on a patch.

 1) The click handler exists on the following elements inside the
 {{{#submitdiv.postbox .misc-publishing-actions}}}:
 {{{('#timestampdiv').siblings('a.edit-timestamp')}}}, {{{$('.cancel-
 timestamp', '#timestampdiv')}}}, {{{$('.save-timestamp',
 '#timestampdiv')}}}, {{{$('#post-status-select').siblings('a.edit-post-
 status')}}}, {{{$('.save-post-status', '#post-status-select')}}},
 {{{$('.cancel-post-status', '#post-status-select')}}}.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21563#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list