Permalink
Browse files

build mode script reset, template loader action defer, beta3 onepager

  • Loading branch information...
1 parent 6df32ff commit 8a42a8401d3d92222179262294cb5a166d9e3ccc @nadimtuhin nadimtuhin committed Oct 25, 2015
Showing with 7 additions and 5 deletions.
  1. +1 −1 app/Assets/BuildModeScripts.php
  2. +2 −1 app/Loaders/TemplateLoader.php
  3. +2 −1 src/WordPress/PageTemplater.php
  4. +2 −2 tx-onepager.php
@@ -6,7 +6,7 @@ class BuildModeScripts {
use FormEngineScripts;
public function __construct() {
- add_action( 'wp_enqueue_scripts', [ $this, 'enqueueScripts' ], 999999);
+ add_action( 'wp_enqueue_scripts', [ $this, 'enqueueScripts' ], 999999999);
add_action( 'wp_enqueue_scripts', function(){
if(!$this->isBuildMode()){
return;
@@ -10,7 +10,8 @@ public function __construct( PageTemplater $pageTemplateManager ) {
$this->pageTemplateManager = $pageTemplateManager;
add_action( 'wp_loaded', [ $this, 'loadOnepagerPageTemplates' ] );
- add_filter( 'template_include', [ $this, 'loadBuildModeTemplate' ], 9999999);
+ //9999999999 is a very big number to make sure that builder.php loads whatever happens
+ add_filter( 'template_include', [ $this, 'loadBuildModeTemplate' ], 9999999999);
}
public function loadBuildModeTemplate( $template ) {
@@ -18,7 +18,8 @@ public function __construct() {
// Add a filter to the template include to determine if the page has our
// template assigned and return it's path
- add_filter( 'template_include', array( $this, 'view_project_template' ), 999999 );
+ // check 999999 - its important
+ add_filter( 'template_include', array( $this, 'view_project_template' ), 99999999 );
}
/**
View
@@ -3,7 +3,7 @@
* Plugin Name: Onepager - One Page Builder
* Plugin URI: http://getonepager.com
* Description: Modern, Powerful & Crazy Fast one page builder. Built with modern tools such ReactJS for next generation theming.
- * Version: 1.2.4-beta2
+ * Version: 1.2.4-beta3
* Author: ThemeXpert
* Author URI: http://www.themexpert.com
* License: GPL-2.0+
@@ -18,7 +18,7 @@
}
if(!defined('ONEPAGER_VERSION')){
- define( 'ONEPAGER_VERSION', '1.2.4-beta2' );
+ define( 'ONEPAGER_VERSION', '1.2.4-beta3' );
}
if(!defined('ONEPAGER_PHP_VERSION')) {

0 comments on commit 8a42a84

Please sign in to comment.