WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 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:

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

Download all attachments as: .zip

Change History (3)

Nazgul7 years ago

comment:1 Nazgul7 years ago

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

comment:2 markjaquith7 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.