WordPress.org

Make WordPress Core

Changeset 16837


Ignore:
Timestamp:
12/09/10 14:23:54 (3 years ago)
Author:
nacin
Message:

Use correct query var. see #15378.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r16825 r16837  
    51625162        return str_replace( "/{$term->slug}", '/' . $slugs[ str_replace( 'post-format-', '', $term->slug ) ], $link ); 
    51635163    } else { 
    5164         $link = remove_query_arg( 'format', $link ); 
    5165         return add_query_arg( 'format', str_replace( 'post-format-', $term->slug ), $link ); 
     5164        $link = remove_query_arg( 'post_format', $link ); 
     5165        return add_query_arg( 'post_format', str_replace( 'post-format-', '', $term->slug ), $link ); 
    51665166    } 
    51675167} 
  • trunk/wp-includes/taxonomy.php

    r16832 r16837  
    9191            'singular_name' => '', 
    9292        ), 
    93         'query_var' => 'post_format', 
     93        'query_var' => true, 
    9494        'rewrite' => $rewrite, 
    9595        'show_ui' => false, 
Note: See TracChangeset for help on using the changeset viewer.