AlxMedia/hueman — pull request #32 by devinsays (2014-02-20 21:46:28+00:00)
Title: Pageavi optimizations.

This pull request looks a bit ridiculous because my code editor strips unnecessary whitespace by default. But, essentially, it's just adding better support for the pagenavi plugin.

The default pagenavi css that the plugin loads is removed with this function. This saves us an HTTP request because that stylesheet is no longer loaded:

```PHP
/**
* WP PageNavi Support
*
* Removes wp-pagenavi styling since it is handled by theme.
*/

function alx_deregister_styles() {
wp_deregister_style( 'wp-pagenavi' );
}
add_action( 'wp_print_styles', 'alx_deregister_styles', 100 );
```

It also allows us to also strip out all the !important from the pagenavi styles in the theme css. This should make child theming a bit easier if those styles need to get overridden. There might be even more room to strip down the pagenavi CSS in the theme, but removing !importants was an easy win.