Plugin Directory

Changeset 366050

Timestamp:
03/28/2011 11:13:00 PM (13 years ago)
Author:
jghazally
Message:

Fixing pagination on variation edit page - http://code.google.com/p/wp-e-commerce/issues/detail?id=482

File:
1 edited

Legend:

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

    r361509 r366050  
    7373 */
    7474function wpsc_set_screen_option($status, $option, $value){
    75     if ($option == "edit_wpsc_product_per_page"){
    76         $value = (int) $value;
    77         if ( $value < 1 || $value > 999 )
    78             return FALSE;
     75    if( in_array($option, array ("edit_wpsc_variation_per_page","edit_wpsc_product_per_page" )) ){
     76        if ( "edit_wpsc_variation_per_page" == $option ){   
     77            global $user_ID;
     78            update_user_option($user_ID,'edit_wpsc-variation_per_page',$value);
     79        }   
    7980        return $value;
    8081    }
    81     return $value;
    8282}
    8383add_filter('set-screen-option', 'wpsc_set_screen_option', 99, 3);
Note: See TracChangeset for help on using the changeset viewer.