Opened 14 years ago
Closed 10 years ago
#17388 closed enhancement (wontfix)
Distraction free writing mode submit button text
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.2 |
Component: | Editor | Keywords: | has-patch |
Focuses: | Cc: |
Description
The text on the submit button in distraction free writing mode should match that of the submit button on the main editing screen. Currently it always says "Update" for published posts, and "Save" for other statuses. It should say "Save Draft", "Save as Pending" etc when relevant (and change when you change the post status dropdown too).
Attachments (2)
Change History (5)
#2
@
12 years ago
17388.patch esc_attr_e()
is wrong here. Should be echo esc_attr()
.
Note: See
TracTickets for help on using
tickets.
This approach gets the
post_type_object
and checkscurrent_user_can->cap->publish_posts
. If so then either a Schedule or Publish button. If no publish caps then Submit for Review button. Fallback to Update ifpost_status
is not publish, future or private.