Ticket #35012: 35012.diff
File 35012.diff, 455 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/query.php
5024 5024 return; 5025 5025 } 5026 5026 5027 // Prevent possible redirect loop (see https://core.trac.wordpress.org/ticket/35012) 5028 if ( $link === get_post_permalink() ) { 5029 return; 5030 } 5031 5027 5032 wp_redirect( $link, 301 ); // Permanent redirect 5028 5033 exit; 5029 5034 endif;