Support » Fixing WordPress » Regression in latest wp-blog-header.php with strpo

  • I just updated my cvs tree this morning and saw the following when loading a test blog page like “/index.php” instead of just “/”:
    Warning: strpos(): Empty delimiter. in wp-blog-header.php on line 36
    The only difference from the cvs update is Ryan Boren’s change to wp-blog-header.php to use strpos() instead of preg_match() so this must have caused the regression.
    Addtionally, I saw this when loading wp.php:
    Warning: Invalid argument supplied for foreach() in wp.php on line 21
    Of course, this may just have to do with the test blog not having any posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • D’oh! That topic should have read, “Regression in latest wp-blog-header.php with strpos() change” but I guess there’s a 50-character limit. 🙂

    Moderator Ryan Boren

    (@ryan)

    WordPress Dev

    strpos() problem is now fixed. Give it a try.

    Wow! That was a quick response. Thanks, Ryan.
    Now if only the SourceForge CVS server were that responsive I could update and try out the fix. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Regression in latest wp-blog-header.php with strpo’ is closed to new replies.