Make WordPress Core


Ignore:
Timestamp:
02/13/2010 09:59:16 AM (15 years ago)
Author:
dd32
Message:

Remove Direct SQL, Use new esc_html() function, Correct the case of the ID keys. See #9015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r13059 r13105  
    66        elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); }
    77        elseif ( is_page() ) { single_post_title(''); print ' | '; bloginfo('name'); }
    8         elseif ( is_search() ) { print 'Search results for ' . wp_specialchars($s); get_page_number(); print ' | '; bloginfo('name'); }
     8        elseif ( is_search() ) { print 'Search results for ' . esc_html($s); get_page_number(); print ' | '; bloginfo('name'); }
    99        elseif ( is_404() ) { print 'Not Found | '; bloginfo('name'); }
    1010        else { bloginfo('name'); wp_title('|'); get_page_number(); }
     
    2121    <?php wp_head(); ?>
    2222
    23     <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
    24     <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
     23    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" />
     24    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" />
    2525    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    2626</head>
Note: See TracChangeset for help on using the changeset viewer.