Make WordPress Core


Ignore:
Timestamp:
03/26/2008 08:17:31 PM (19 years ago)
Author:
ryan
Message:

Fix attachment links for permalink structures containing category tag. Props andy. fixes #4699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r7520 r7531  
    10371037
    10381038                // Category stuff for nice URLs
    1039                 if ( '' != $q['category_name'] ) {
     1039                if ( '' != $q['category_name'] && !$this->is_singular ) {
    10401040                        $reqcat = get_category_by_path($q['category_name']);
    10411041                        $q['category_name'] = str_replace('%2F', '/', urlencode(urldecode($q['category_name'])));
Note: See TracChangeset for help on using the changeset viewer.