Make WordPress Core


Ignore:
Timestamp:
03/07/2007 05:29:15 AM (19 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-blog-header.php

    r4973 r4990  
    33if (! isset($wp_did_header)):
    44if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
    5         if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
     5        if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
    66        else $path = 'wp-admin/';
    77
Note: See TracChangeset for help on using the changeset viewer.