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-includes/pluggable.php

    r4953 r4990  
    281281        $referer = strtolower(wp_get_referer());
    282282        if ( !wp_verify_nonce($_REQUEST['_wpnonce'], $action) &&
    283                 !(-1 == $action && strstr($referer, $adminurl)) ) {
     283                !(-1 == $action && strpos($referer, $adminurl) !== false))
    284284                wp_nonce_ays($action);
    285285                die();
Note: See TracChangeset for help on using the changeset viewer.