Changeset 20685
- Timestamp:
- 05/02/2012 04:29:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r20537 r20685 1373 1373 * 1374 1374 * @param int $pagenum Optional. Page ID. 1375 * @return string 1376 */ 1377 function get_pagenum_link($pagenum = 1) { 1375 * @param bool $escape Optional. Whether to escape the URL for display, with esc_url(). Defaults to true. 1376 * Otherwise, prepares the URL with esc_url_raw(). 1377 * @return string 1378 */ 1379 function get_pagenum_link($pagenum = 1, $escape = true ) { 1378 1380 global $wp_rewrite; 1379 1381 … … 1426 1428 $result = apply_filters('get_pagenum_link', $result); 1427 1429 1428 return $result; 1430 if ( $escape ) 1431 return esc_url( $result ); 1432 else 1433 return esc_url_raw( $result ); 1429 1434 } 1430 1435
Note: See TracChangeset
for help on using the changeset viewer.