~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-includes/general-template.php

  • Committer: Chris Jones
  • Date: 2010-01-19 13:17:33 UTC
  • Revision ID: cmsj@tenshu.net-20100119131733-rf31jv9k1v0xzo2h
[CJ] Import wordpress 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
function wp_logout_url($redirect = '') {
167
167
        $args = array( 'action' => 'logout' );
168
168
        if ( !empty($redirect) ) {
169
 
                $args['redirect_to'] = $redirect;
 
169
                $args['redirect_to'] = urlencode( $redirect );
170
170
        }
171
171
 
172
172
        $logout_url = add_query_arg($args, site_url('wp-login.php', 'login'));
817
817
                        $afterafter = $after;
818
818
                        foreach ( (array) $arcresults as $arcresult ) {
819
819
                                $url = get_month_link( $arcresult->year, $arcresult->month );
 
820
                                /* translators: 1: month name, 2: 4-digit year */
820
821
                                $text = sprintf(__('%1$s %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year);
821
822
                                if ( $show_post_count )
822
823
                                        $after = ' ('.$arcresult->posts.')' . $afterafter;
1166
1167
add_action( 'delete_post', 'delete_get_calendar_cache' );
1167
1168
add_action( 'update_option_start_of_week', 'delete_get_calendar_cache' );
1168
1169
add_action( 'update_option_gmt_offset', 'delete_get_calendar_cache' );
1169
 
add_action( 'update_option_start_of_week', 'delete_get_calendar_cache' );
1170
1170
 
1171
1171
/**
1172
1172
 * Display all of the allowed tags in HTML format with attributes.
1705
1705
 * @return string
1706
1706
 */
1707
1707
function get_search_query() {
1708
 
        return apply_filters( 'get_search_query', stripslashes( get_query_var( 's' ) ) );
 
1708
        return apply_filters( 'get_search_query', get_query_var( 's' ) );
1709
1709
}
1710
1710
 
1711
1711
/**
2046
2046
        return apply_filters( "get_the_generator_{$type}", $gen, $type );
2047
2047
}
2048
2048
 
2049
 
?>
 
2049
?>
 
 
b'\\ No newline at end of file'