Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#24247 closed defect (bug) (fixed)

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

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

Description

Since [12708].

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
14 years ago

  • Component General → 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
14 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 24199:

Remove unused variables. props ocean90. fixes #24247.

Note: See TracTickets for help on using tickets.