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/feed.php

    r4937 r4990  
    166166function html_type_rss() {
    167167    $type = get_bloginfo('html_type');
    168     if ( strstr( $type, 'xhtml' ) )
     168    if (strpos($type, 'xhtml') !== false)
    169169        $type = 'xhtml';
    170170    else
Note: See TracChangeset for help on using the changeset viewer.