Skip to content
Permalink
Browse files

Don't refresh sections on every wp-admin page load

  • Loading branch information...
Simon Prosser
Simon Prosser committed Aug 21, 2013
1 parent f706359 commit c4288a69d56da7142a0f9f239c9f59f56a331675
Showing with 3 additions and 2 deletions.
  1. +3 −2 admin/actions.admin.php
@@ -344,9 +344,10 @@ function pl_page_show_columns($name) {
add_action( 'admin_init', 'pagelines_set_versions' );
function pagelines_set_versions() {
if ( current_user_can( 'edit_themes' ) ) {
delete_transient( 'pagelines_sections_cache' );
if( defined( 'PL_LESS_DEV' ) && PL_LESS_DEV )
if( defined( 'PL_LESS_DEV' ) && PL_LESS_DEV ) {
PageLinesRenderCSS::flush_version( false );
delete_transient( 'pagelines_sections_cache' );
}
}
set_theme_mod( 'pagelines_version', pl_get_theme_data( get_template_directory(), 'Version' ) );
set_theme_mod( 'pagelines_child_version', pl_get_theme_data( get_stylesheet_directory(), 'Version' ) );

0 comments on commit c4288a6

Please sign in to comment.
You can’t perform that action at this time.