WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/07/2007 05:29:15 AM (14 years ago)
Author:
markjaquith
Message:

Use strpos instead of strstr where ever possible, for speed. Props rob1n. fixes #3920

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r4953 r4990  
    373373        header('Content-Type: text/html; charset=utf-8');
    374374
    375         if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') )
     375        if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false)
    376376            $admin_dir = '';
    377377        else
Note: See TracChangeset for help on using the changeset viewer.