WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 5 months 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:

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)

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

Download all attachments as: .zip

Change History (5)

comment:1 @c3mdigital22 months 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 22 months ago by c3mdigital (previous) (diff)

@c3mdigital22 months ago

comment:2 @ocean9022 months ago

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

@c3mdigital22 months ago

esc_attr() instead of esc_attr_e

comment:3 @iseulde5 months 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.