Use strpos() instead of preg_match()
|Reported by:||johnbillion||Owned by:||westi|
There's a preg_match() in wp-includes/query.php where strpos() could be used instead, as it's only checking if one string occurs inside another (specifically, if <!--nextpage--> is found within the post content).
Let's replace it with strpos() for some hot optimisation action. Patch coming up.
Change History (6)
9 years ago
- Summary changed from query.php - Use strpos() instead of preg_match() to Use strpos() instead of preg_match()
- Milestone set to 2.7
- Owner changed from anonymous to westi
- Status changed from new to assigned