Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#4924 closed defect (bug) (fixed)

Unused option subjectprefix still in use

Reported by: nazgul's profile Nazgul Owned by: nazgul's profile Nazgul
Milestone: 2.3 Priority: low
Severity: minor Version: 2.3
Component: General Keywords: has-patch
Focuses: Cc:

Description

During the upgrade process a few unused options are removed, among them subjectprefix.

But this option is still in use in wp-mail.php:

$subject = trim(str_replace(get_option('subjectprefix'), '', $subject));

Because this results in "" being replaced by "" it has no ill effects, but I suggest removing this (now) useless reference anyway.

Attachments (1)

4924.diff (399 bytes) - added by Nazgul 16 years ago.

Download all attachments as: .zip

Change History (3)

@Nazgul
16 years ago

#1 @Nazgul
16 years ago

  • Keywords has-patch added
  • Owner changed from anonymous to Nazgul
  • Status changed from new to assigned

#2 @markjaquith
16 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6056]) Skip deprecated option replacement in wp-mail.php. props Nazgul. fixes #4924

Note: See TracTickets for help on using tickets.