Make WordPress Core

Changeset 8594


Ignore:
Timestamp:
08/08/2008 05:46:49 PM (16 years ago)
Author:
markjaquith
Message:

Fix braces so user_trailingslashit gets the correct information passed in canonical redirect code. props xorax. fixes #7483 for 2.6.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/canonical.php

    r7990 r8594  
    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() ) {
Note: See TracChangeset for help on using the changeset viewer.