[wp-trac] [WordPress Trac] #24247: wp-admin/post.php: Remove unused variables and get_post() calls

WordPress Trac noreply at wordpress.org
Wed May 8 17:50:30 UTC 2013


#24247: wp-admin/post.php: Remove unused variables and get_post() calls
----------------------------+------------------
 Reporter:  ocean90         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.6
Component:  Administration  |     Version:  3.0
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------
Changes (by SergeyBiryukov):

 * component:  General => Administration


Comment:

 `$p` (line 136) was originally added in [854]. Appears to be unused since
 [1491].

 `$post_type` (line 157) is actually used in the next line.

 `$post` (line 226) was introduced in [11749] and removed in [12708] for
 `case 'untrash'`, but not for `case 'trash'`, although it was unused in
 both.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24247#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list