Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function last_modified_query_arg( $src ) {
- // Add a last modified get parameter to the main stylesheet.
- // Avoid client cache issue on.
- if ( strpos( $src, get_stylesheet_uri()) !== false )
- $src = add_query_arg( array('lm'=>filemtime( get_stylesheet_directory() . '/style.css')), $src ) ;
- return $src;
- } // last_modified_query_arg
- add_filter( 'style_loader_src', 'last_modified_query_arg');
Advertisement
Add Comment
Please, Sign In to add comment