Make WordPress Core

Opened 7 years ago

Closed 3 years ago

#17388 closed enhancement (wontfix)

Distraction free writing mode submit button text

Reported by: johnbillion Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2
Component: Editor Keywords: has-patch
Focuses: Cc:


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)

17388.patch (1.8 KB) - added by c3mdigital 5 years ago.
17388.2.patch (1.8 KB) - added by c3mdigital 5 years ago.
esc_attr() instead of esc_attr_e

Download all attachments as: .zip

Change History (5)

#1 @c3mdigital
5 years ago

  • Keywords has-patch added

This approach gets the post_type_object and checks current_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 if post_status is not publish, future or private.

Last edited 5 years ago by c3mdigital (previous) (diff)

5 years ago

#2 @ocean90
5 years ago

17388.patch esc_attr_e() is wrong here. Should be echo esc_attr().

5 years ago

esc_attr() instead of esc_attr_e

#3 @iseulde
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

DFW mode has changed in 4.1.

Note: See TracTickets for help on using tickets.