Make WordPress Core

Ticket #30297: 30297.patch

File 30297.patch, 748 bytes (added by 5um17, 12 years ago)

Patch after removing unnecessary variable

  • wp-includes/general-template.php

     
    16651665                $daywithpost = array();
    16661666        }
    16671667
    1668         if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false)
     1668        if ( isset($_SERVER['HTTP_USER_AGENT']) && ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false) )
    16691669                $ak_title_separator = "\n";
    16701670        else
    16711671                $ak_title_separator = ', ';