Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#7611 closed enhancement (fixed)

Use strpos() instead of strstr()

Reported by: johnbillion Owned by: westi
Milestone: 2.7 Priority: low
Severity: minor Version: 2.6.1
Component: Optimization Keywords: has-patch
Focuses: Cc:


Following on from #7610, there are two places where strpos() could be used instead of strstr(). According to the PHP Manual, strpos() is faster and less memory intensive than strstr().

Attachments (1)

7611.diff (1.0 KB) - added by johnbillion 9 years ago.

Download all attachments as: .zip

Change History (4)

9 years ago

#1 @johnbillion
9 years ago

  • Keywords has-patch added


#2 @westi
9 years ago

  • Milestone set to 2.7
  • Owner changed from anonymous to westi
  • Status changed from new to assigned

#3 @westi
9 years ago

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

(In [8754]) Performance improvements using strpos. Fixes #7611 and #7610 props johnbillion.

Note: See TracTickets for help on using tickets.