Ticket #29636: 29636.4.diff
| File 29636.4.diff, 1.6 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/general-template.php
2465 2465 2466 2466 if ( isset( $url_parts[1] ) ) { 2467 2467 wp_parse_str( $url_parts[1], $query_args ); 2468 $query_args = urlencode_deep( $query_args ); 2468 2469 } 2469 2470 2470 2471 $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link ); -
tests/phpunit/tests/general/paginateLinks.php
188 188 } 189 189 190 190 function add_query_arg( $url ) { 191 return add_query_arg( array( 'foo' => 'bar' ), $url ); 191 return add_query_arg( array( 192 'foo' => 'bar', 193 's' => 'search+term', 194 ), $url ); 192 195 } 193 196 194 197 /** … … 208 211 $document = new DOMDocument(); 209 212 $document->preserveWhiteSpace = false; 210 213 211 // All links should have foo=bar arguments :214 // All links should have foo=bar arguments and be escaped: 212 215 $data = array( 213 0 => home_url( '/?foo=bar ' ),214 1 => home_url( '/?foo=bar ' ),215 3 => home_url( '/?paged=3&foo=bar ' ),216 5 => home_url( '/?paged=5&foo=bar ' ),217 6 => home_url( '/?paged=3&foo=bar ' ),216 0 => home_url( '/?foo=bar&s=search+term' ), 217 1 => home_url( '/?foo=bar&s=search+term' ), 218 3 => home_url( '/?paged=3&foo=bar&s=search+term' ), 219 5 => home_url( '/?paged=5&foo=bar&s=search+term' ), 220 6 => home_url( '/?paged=3&foo=bar&s=search+term' ), 218 221 ); 219 222 220 223 foreach ( $data as $index => $expected_href ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)