WordPress.org

Plugin Directory

Changeset 379839


Ignore:
Timestamp:
05/02/11 15:04:11 (3 years ago)
Author:
leogermani
Message:

[fix] parse_query dont parse menu items and attachments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multi-language-framework/trunk/parse_query.php

    r378604 r379839  
    2828         
    2929        $post_type = $wp_query->query_vars['post_type'] ? $wp_query->query_vars['post_type'] : 'post'; 
    30                  
    31         $wp_query->query_vars['post_type'] = $post_type . '_t_' . $mlf_config['current_language']; 
     30         
     31        if ($post_type != 'nav_menu_item' && $post_type != 'attachment') 
     32            $wp_query->query_vars['post_type'] = $post_type . '_t_' . $mlf_config['current_language']; 
    3233     
    3334    } else { 
Note: See TracChangeset for help on using the changeset viewer.