WordPress.org

Make WordPress Core

Ticket #7023: 7023.patch

File 7023.patch, 2.0 KB (added by Viper007Bond, 7 years ago)
  • wp-admin/admin-header.php

     
    8585        <a href="http://gears.google.com/" target="_blank" style="font-weight:normal;"><?php _e('More information...'); ?></a></p> 
    8686        <p><?php _e('After installing and enabling it, most of the WordPress images, scripts and CSS files will be stored on this computer. This will speed up page loading.'); ?></p> 
    8787        <p><strong><?php _e('Please make sure you are not using a public or shared computer.'); ?></strong></p> 
    88         <div class="submit"><button onclick="window.location = 'http://gears.google.com/?action=install&return=<?php echo get_option('siteurl') . '/wp-admin/'; ?>';" class="button"><?php _e('Install Now'); ?></button> 
     88        <div class="submit"><button onclick="window.location = 'http://gears.google.com/?action=install&amp;return=<?php echo get_option('siteurl') . '/wp-admin/'; ?>';" class="button"><?php _e('Install Now'); ?></button> 
    8989        <button class="button" style="margin-left:10px;" onclick="document.getElementById('gears-info-box').style.display='none';">Cancel</button></div> 
    9090        </div> 
    9191 
  • wp-admin/includes/dashboard.php

     
    389389        $rss->items = array_slice($rss->items, 0, $items); 
    390390        foreach ($rss->items as $item ) { 
    391391                $title = wp_specialchars($item['title']); 
    392                 $author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] ); 
    393                 $post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] ); 
     392                $author = wp_specialchars( preg_replace( '|(.+?):.+|s', '$1', $item['title'] ) ); 
     393                $post = wp_specialchars( preg_replace( '|.+?:(.+)|s', '$1', $item['title'] ) ); 
    394394                $link = clean_url($item['link']); 
    395395 
    396396                echo "\t<li><a href='$link'><span class='post'>$post</span><span class='hidden'> - </span><cite>$author</cite></a></li>\n";