Make WordPress Core

Ticket #30297: 30297.3-no-conditional.patch

File 30297.3-no-conditional.patch, 994 bytes (added by elusiveunit, 11 years ago)

Removing the conditional entirely

  • wp-includes/general-template.php

     
    17441744                }
    17451745        }
    17461746
    1747         if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false)
    1748                 $ak_title_separator = "\n";
    1749         else
    1750                 $ak_title_separator = ', ';
    1751 
    17521747        $ak_titles_for_day = array();
    17531748        $ak_post_titles = $wpdb->get_results("SELECT ID, post_title, DAYOFMONTH(post_date) as dom "
    17541749                ."FROM $wpdb->posts "
    … …  
    17671762                                if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one
    17681763                                        $ak_titles_for_day["$ak_post_title->dom"] = $post_title;
    17691764                                else
    1770                                         $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title;
     1765                                        $ak_titles_for_day["$ak_post_title->dom"] .= "\n" . $post_title;
    17711766                }
    17721767        }
    17731768