Permalink
Browse files

Fix Declaration incompatability error. Props flynsarmy

  • Loading branch information...
1 parent f46254e commit 741ae330d09efd642be2ec323ac8e9638b113e99 @lesterchan committed Aug 27, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 admin.php
View
@@ -12,7 +12,8 @@ function setup() {
);
}
- function validate( $options ) {
+ function validate( $new_data, $old_data ) {
+ $options = wp_parse_args($new_data, $old_data);
foreach ( array( 'style', 'num_pages', 'num_larger_page_numbers', 'larger_page_numbers_multiple' ) as $key )
$options[$key] = absint( @$options[$key] );

1 comment on commit 741ae33

patched live and tested - works good. thx :)

Please sign in to comment.