[wp-trac] [WordPress Trac] #6781: edit-post-rows.php - Clearer post
status echo
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 19 17:43:12 GMT 2008
#6781: edit-post-rows.php - Clearer post status echo
---------------------------+------------------------------------------------
Reporter: simonwheatley | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version:
Severity: normal | Keywords: has-patch needs-testing
---------------------------+------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/6781>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list