Ticket #7483: 7483.diff

File 7483.diff, 641 bytes (added by DD32, 4 years ago)

Reporters code in .diff format.

  • wp-includes/canonical.php

     
    165165                } else { 
    166166                        foreach ( array('single', 'category', 'page', 'day', 'month', 'year') as $type ) { 
    167167                                $func = 'is_' . $type; 
    168                                 if ( call_user_func($func) ) 
     168                                if ( call_user_func($func) ) { 
    169169                                        $user_ts_type = $type; 
    170170                                        break; 
    171171                                } 
    172172                        } 
     173                } 
    173174                $redirect['path'] = user_trailingslashit($redirect['path'], $user_ts_type); 
    174175        } elseif ( is_home() ) { 
    175176                $redirect['path'] = trailingslashit($redirect['path']);