Skip to content

Commit

Permalink
Merge branch 'Dev' of https://github.com/pagelines/framework into Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Powers committed Jun 20, 2013
2 parents 2f66abf + 1ba6fb5 commit 791103c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions includes/actions.site.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,17 @@ function pagelines_print_js() {
// Load Supersize BG Script
add_action( 'wp_enqueue_scripts', 'pagelines_supersize_bg' );

if ( defined( 'PL_LESS_DEV' ) && PL_LESS_DEV && pl_has_editor()) {
// PageLinesRenderCSS::flush_version( false );
// pl_flush_draft_caches();


add_action( 'template_redirect', 'pagelines_check_lessdev' );
function pagelines_check_lessdev(){
if ( ! isset( $_GET['pagedraft'] )
&& defined( 'PL_LESS_DEV' )
&& PL_LESS_DEV
&& false == EditorLessHandler::is_draft()
) {
PageLinesRenderCSS::flush_version( false );
}
}
add_filter( 'generate_rewrite_rules', array( 'PageLinesRenderCSS', 'pagelines_less_rewrite' ) );
add_action( 'wp_loaded', array( 'PageLinesRenderCSS', 'check_rules') );
Expand Down

0 comments on commit 791103c

Please sign in to comment.