Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#4924 closed defect (bug) (fixed)

Unused option subjectprefix still in use

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


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 11 years ago.

Download all attachments as: .zip

Change History (3)

11 years ago

#1 @Nazgul
11 years ago

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

#2 @markjaquith
11 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.