Changeset 366050
- Timestamp:
- 03/28/2011 11:13:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-e-commerce/branches/3.8-development/wpsc-admin/admin.php
r361509 r366050 73 73 */ 74 74 function 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 } 79 80 return $value; 80 81 } 81 return $value;82 82 } 83 83 add_filter('set-screen-option', 'wpsc_set_screen_option', 99, 3);
Note: See TracChangeset
for help on using the changeset viewer.