WordPress.org

Support

Support » Plugins and Hacks » WP-PageNavi » [Resolved] admin.php fix to account for strict notice…

[Resolved] admin.php fix to account for strict notice…

  • Mike Stop Continues

    @mike-stop-continues

    validate method should be compatible with scbAdminPage::validate…

    function validate( $new_data, $old_data ) {
    		foreach ( array( 'style', 'num_pages', 'num_larger_page_numbers', 'larger_page_numbers_multiple' ) as $key )
    			$new_data[$key] = absint( @$new_data[$key] );
    
    		foreach ( array( 'use_pagenavi_css', 'always_show' ) as $key )
    			$new_data[$key] = (bool) @$new_data[$key];
    
    		return $new_data;
    	}

    http://wordpress.org/plugins/wp-pagenavi/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] admin.php fix to account for strict notice…’ is closed to new replies.
Skip to toolbar