Changeset 1006829
- Timestamp:
- 10/13/2014 06:47:25 PM (11 years ago)
- Location:
- app-store-assistant/trunk
- Files:
-
- 2 added
- 2 edited
-
app-store-assistant.php (modified) (1 diff)
-
includes/app-store-admin_functions.php (modified) (3 diffs)
-
includes/options_pages/options_utils_beta.php (added)
-
js_functions/asa-ajax.min.js (added)
Legend:
- Unmodified
- Added
- Removed
-
app-store-assistant/trunk/app-store-assistant.php
r1001843 r1006829 2 2 /* 3 3 Plugin Name: App Store Assistant 4 Version: 6.9.0 (20141004.121817)4 Version: 6.9.0.20141009 5 5 Text Domain: appStoreAssistant 6 6 Plugin URI: http://TheiPhoneAppsList.com/ -
app-store-assistant/trunk/includes/app-store-admin_functions.php
r1001077 r1006829 295 295 } 296 296 297 // Add JQuery Functionality 298 add_action( 'wp_ajax_test', 'asa_ajax_callback' ); 299 add_action( 'wp_ajax_no_ppriv_test', 'asa_ajax_callback' ); 300 function asa_ajax_callback() { 301 check_ajax_referer( "asaAJAX-nonce" ); 302 echo 'Hello World2!'; 303 die('More Info'); 304 305 /* 306 if ( check_ajax_referer( 'asaAJAX', 'nonce' ) ) { 307 308 //wp_die( 'Hello World' ); 309 } 310 else{ 311 wp_die( 'Nonce error' ); 312 } 313 */ 314 } 315 316 297 317 function appStore_add_admin_scripts() { 298 318 wp_enqueue_script('jquery'); … … 309 329 wp_enqueue_script( 'jquery-ui-progressbar', plugins_url( 'js_functions/jquery-ui/jquery.ui.progressbar.min.1.7.2.js', ASA_MAIN_FILE ), array( 'jquery-ui-core' ), '1.7.2' ); 310 330 wp_enqueue_style( 'jquery-ui-appStore', plugins_url( 'js_functions/jquery-ui/redmond/jquery-ui-1.7.2.custom.css', ASA_MAIN_FILE ), array(), '1.7.2' ); 331 332 wp_enqueue_script( 'asa-ajax', plugins_url('js_functions/asa-ajax.min.js',ASA_MAIN_FILE), array ( 'jquery' ), false, true ); 333 $asaAJAX = array( 334 'nextNonce' => wp_create_nonce( 'asaAJAX-nonce' ), 335 'ajaxURL' => admin_url( 'admin-ajax.php' ) 336 ); 337 wp_localize_script( 'asa-ajax', 'asaAJAX', $asaAJAX ); 311 338 312 339 … … 531 558 'clearcache' => __('Clear Cache','appStoreAssistant'), 532 559 'remove_featured' => __('Remove Featured','appStoreAssistant'), 533 'reset' => __('Reset Defaults','appStoreAssistant') 560 'reset' => __('Reset Defaults','appStoreAssistant'), 561 'beta' => __('Beta Utilities','appStoreAssistant') 534 562 ); 535 563 break;
Note: See TracChangeset
for help on using the changeset viewer.