Skip to content

Commit

Permalink
Fix Declaration incompatability error. Props flynsarmy
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterchan committed Aug 27, 2013
1 parent f46254e commit 741ae33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin.php
Expand Up @@ -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 ) foreach ( array( 'style', 'num_pages', 'num_larger_page_numbers', 'larger_page_numbers_multiple' ) as $key )
$options[$key] = absint( @$options[$key] ); $options[$key] = absint( @$options[$key] );


Expand Down

1 comment on commit 741ae33

@chuckreynolds
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patched live and tested - works good. thx :)

Please sign in to comment.