Ticket #6781 (new enhancement)

Opened 7 months ago

Last modified 7 months ago

edit-post-rows.php - Clearer post status echo

Reported by: simonwheatley Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: General Version: 2.6
Severity: normal Keywords: has-patch needs-testing
Cc:

Description

The code which echoes the post status on the manage posts page could be shorter if the switch statement was replaced by the attached code, which uses the $post_stati multidimensional array. If additional statuses are added in the future, the replacement code should cope without requiring additional cases in a switch.

Attachments

edit_post_rows_simplification.patch (0.8 kB) - added by simonwheatley on 04/19/08 17:43:38.
Replace switch statement

Change History

04/19/08 17:43:38 changed by simonwheatley

  • attachment edit_post_rows_simplification.patch added.

Replace switch statement

04/19/08 18:00:05 changed by lloydbudd

  • version set to 2.6.
  • milestone changed from 2.7 to 2.6.