Make WordPress Core


Ignore:
Timestamp:
02/08/2010 08:28:13 PM (15 years ago)
Author:
ryan
Message:

Escape some attributes. Fix search form action. see #9015

File:
1 edited

Legend:

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

    r13025 r13029  
    5050// Get the page number
    5151function get_page_number() {
    52     if ( get_query_var('paged') ) {
     52    if ( get_query_var('paged') )
    5353        print ' | ' . __( 'Page ' , 'twentyten') . get_query_var('paged');
    54     }
    5554} // end get_page_number
    5655
     
    6766// Make a nice read more link on excerpts
    6867function new_excerpt_more($more) {
    69 return '&nbsp;&hellip; <a href="'. get_permalink($post->ID) . '">' . 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>' . '</a>';
     68    return '&nbsp;&hellip; <a href="'. get_permalink() . '">' . 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>' . '</a>';
    7069}
    7170add_filter('excerpt_more', 'new_excerpt_more');
     
    125124function remove_gallery_css() {
    126125    return "<div class='gallery'>";
    127     }
    128     add_filter('gallery_style', 'remove_gallery_css');
     126}
     127add_filter('gallery_style', 'remove_gallery_css');
    129128
    130129
     
    241240// Add all the groovy widget areas
    242241add_action( 'init', 'theme_widgets_init' );
    243 
    244 
Note: See TracChangeset for help on using the changeset viewer.