Skip to content

Commit

Permalink
Fix Aeria Ajax
Browse files Browse the repository at this point in the history
Signed-off-by: Graziano Vincini <[email protected]>
  • Loading branch information
vincio87 committed Mar 6, 2015
1 parent 0d9adf7 commit 2021d53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions aeria.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* Author: Caffeina Srl
* Author URI: http://caffeina.co
* Plugin URI: https://github.com/CaffeinaLab/aeria
* Version: 1.3.6
* Version: 1.3.7
*/

// Exit if accessed directly
if( false === defined('ABSPATH') ) exit;

// The Framework version
define('AERIA','1.3.6');
define('AERIA','1.3.7');

// Store whether or not we're in the admin
if( false === defined('IS_ADMIN') ) define( 'IS_ADMIN', is_admin() );
Expand Down
6 changes: 4 additions & 2 deletions classes/AeriaAJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
// Exit if accessed directly.
if( false === defined('AERIA') ) exit;

wp_enqueue_script('aeria.ajax', AERIA_URL.'resources/js/aeria.ajax.js');
wp_localize_script('aeria.ajax', 'AERIA_AJAX', [ 'URL' => AERIA_HOME_URL.'index.php' ]);
add_action('init', function(){
wp_enqueue_script('aeria.ajax', AERIA_URL.'resources/js/aeria.ajax.js');
wp_localize_script('aeria.ajax', 'AERIA_AJAX', [ 'URL' => AERIA_HOME_URL.'index.php' ]);
});

// Install Ajax Handler
add_filter('query_vars',function($vars) {
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"homepage": "http://labs.caffeina.co/tech/aeria",
"download_url": "https://github.com/CaffeinaLab/aeria/archive/master.zip",

"version": "1.3.6",
"version": "1.3.7",
"requires": "3.5",
"tested": "4.0",
"last_updated": "2015-02-25 16:45:00",
"upgrade_notice": "[New Feature] Aeria Post Raw",
"last_updated": "2015-03-06 12:30:00",
"upgrade_notice": "[FIX] Aeria Ajax fix",

"author": "Caffeina",
"author_homepage": "http://caffeina.co/",
Expand Down

0 comments on commit 2021d53

Please sign in to comment.