WordPress.org

Make WordPress Core

Ticket #24278: get_archives_link.patch

File get_archives_link.patch, 1.3 KB (added by sterlo, 14 months ago)

get_archives_link() fix

  • wp-includes/general-template.php

    commit 3577e0db63864cbe594694bf40a0fb514c751756
    Author: Sterling Hamilton <sterling.hamilton@gmail.com>
    Date:   Tue May 7 09:49:13 2013 -0700
    
        Fixing quotes...
    
    diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
    index 546d69f..a795a52 100644
    a b function get_archives_link($url, $text, $format = 'html', $before = '', $after = 
    864864        $url = esc_url($url); 
    865865 
    866866        if ('link' == $format) 
    867                 $link_html = "\t<link rel='archives' title='$title_text' href='$url' />\n"; 
     867                $link_html = "\t<link rel=\"archives\" title=\"$title_text\" href=\"$url\" />\n"; 
    868868        elseif ('option' == $format) 
    869                 $link_html = "\t<option value='$url'>$before $text $after</option>\n"; 
     869                $link_html = "\t<option value=\"$url\">$before $text $after</option>\n"; 
    870870        elseif ('html' == $format) 
    871                 $link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n"; 
     871                $link_html = "\t<li>$before<a href=\"$url\" title=\"$title_text\">$text</a>$after</li>\n"; 
    872872        else // custom 
    873                 $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n"; 
     873                $link_html = "\t$before<a href=\"$url\" title=\"$title_text\">$text</a>$after\n"; 
    874874 
    875875        $link_html = apply_filters( 'get_archives_link', $link_html ); 
    876876