Ticket #17183: 17183.patch
File 17183.patch, 729 bytes (added by , 11 years ago) |
---|
-
wp-includes/link-template.php
240 240 function get_page_link( $post = false, $leavename = false, $sample = false ) { 241 241 $post = get_post( $post ); 242 242 243 if ( 'page' == get_option( 'show_on_front' ) && $post->ID == get_option( 'page_on_front' ) ) 244 $link = home_url('/'); 243 if ( 'page' == get_option( 'show_on_front' ) && $post->ID == get_option( 'page_on_front' ) ) { 244 if ( ! got_mod_rewrite() ) 245 $link = home_url( 'index.php/'); 246 else 247 $link = home_url( '/' ); 248 } 245 249 else 246 250 $link = _get_page_link( $post, $leavename, $sample ); 247 251