WordPress.org

Make WordPress Core

Opened 7 years ago

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

Download all attachments as: .zip

Change History (4)

@johnbillion7 years ago

comment:1 @johnbillion7 years ago

  • Keywords has-patch added

Patch.

comment:2 @westi7 years ago

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

comment:3 @westi7 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.