Plugin Directory

Changeset 356420

Timestamp:
03/07/2011 02:52:44 AM (13 years ago)
Author:
jghazally
Message:

Fix product ordering from intefering with post ordering in backend: http://getshopped.org/forums/topic.php?id=18273

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-admin/admin.php

    r355399 r356420  
    4242 */
    4343function wpsc_query_vars_product_list($vars){
     44
     45
     46
    4447    $vars['posts_per_archive_page'] = 0;
    45     if(is_admin() && isset($vars['post_type']) && 'wpsc-product' == $vars['post_type'] && isset($vars['orderby'])){
     48    if(is_admin() && isset($vars['orderby'])){
    4649        $vars['orderby'] = 'date';
    4750        $vars['order'] = 'desc';
     
    5558        $vars['nopaging'] = true;
    5659    }
     60
    5761    return $vars;
    5862}
Note: See TracChangeset for help on using the changeset viewer.