WordPress.org

Make WordPress Core

Changeset 12271


Ignore:
Timestamp:
11/24/09 16:08:13 (4 years ago)
Author:
ryan
Message:

Fix attachment rewrite endpoints. Props Curioso. fixes #5553

File:
1 edited

Legend:

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

    r12264 r12271  
    14451445 
    14461446                    //do endpoints for attachments 
    1447                     if ( !empty($endpoint) ) { foreach ( (array) $ep_query_append as $regex => $ep ) { 
     1447                    if ( !empty($endpoints) ) { foreach ( (array) $ep_query_append as $regex => $ep ) { 
    14481448                        if ($ep[0] & EP_ATTACHMENT) { 
    1449                             $rewrite[$sub1 . $regex] = $subquery . '?' . $ep[1] . $this->preg_index(2); 
    1450                             $rewrite[$sub2 . $regex] = $subquery . '?' . $ep[1] . $this->preg_index(2); 
     1449                            $rewrite[$sub1 . $regex] = $subquery . $ep[1] . $this->preg_index(2); 
     1450                            $rewrite[$sub2 . $regex] = $subquery . $ep[1] . $this->preg_index(2); 
    14511451                        } 
    14521452                    } } 
Note: See TracChangeset for help on using the changeset viewer.