Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24247 closed defect (bug) (fixed)

wp-admin/post.php: Remove unused variables and get_post() calls

Reported by: ocean90's profile ocean90 Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.0
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Since [12708].

Attachments (1)

24247.patch (784 bytes) - added by ocean90 11 years ago.

Download all attachments as: .zip

Change History (3)

@ocean90
11 years ago

#1 @SergeyBiryukov
11 years ago

  • Component changed from General to Administration

$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.

#2 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 24199:

Remove unused variables. props ocean90. fixes #24247.

Note: See TracTickets for help on using tickets.