WordPress.org

Make WordPress Core

Opened 10 years ago

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

Description

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

Download all attachments as: .zip

Change History (4)

@johnbillion
10 years ago

#1 @johnbillion
10 years ago

  • Keywords has-patch added

Patch.

#2 @westi
10 years ago

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

#3 @westi
10 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.