Changeset 1111177
- Timestamp:
- 03/12/2015 03:09:59 PM (11 years ago)
- Location:
- adentify/trunk
- Files:
-
- 2 edited
-
adentify.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adentify/trunk/adentify.php
r1110997 r1111177 4 4 * Plugin URI: http://wordpress.adentify.com 5 5 * Description: A brief description of the Plugin. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Author: ValYouAd 8 8 * Author URI: http://www.valyouad.com … … 44 44 define( 'ADENTIFY_REDIRECT_URI', admin_url(sprintf('options-general.php?page=%s', ADENTIFY_PLUGIN_SETTINGS_PAGE_NAME)) ); 45 45 define( 'ADENTIFY_ADMIN_URL', admin_url('admin-ajax.php')); 46 define( 'ADENTIFY_AJAX_URL', plugin_dir_url( __FILE__ ) . 'ajax.php');47 46 define( 'ADENTIFY_API_CLIENT_NAME', sprintf('plugin_wordpress_%s', $_SERVER['HTTP_HOST'])); 48 47 define( 'ADENTIFY_API_CLIENT_ID_KEY', 'api_client_id'); … … 51 50 define( 'ADENTIFY_API_REFRESH_TOKEN', 'api_refresh_token'); 52 51 define( 'ADENTIFY_API_EXPIRES_TIMESTAMP', 'api_expires_timestamp'); 53 define( 'PLUGIN_VERSION', '1.0. 7');52 define( 'PLUGIN_VERSION', '1.0.8'); 54 53 define( 'ADENTIFY_SQL_TABLE_PHOTOS', 'adentify_photos'); 55 54 … … 399 398 wp_send_json_error("status code: 401 Unauthorized"); 400 399 } 401 add_action( 'wp_ajax_ad_upload', 'ad_upload' );402 400 403 401 function ad_tag() { … … 410 408 exit(); 411 409 } 412 add_action( 'wp_ajax_ad_tag', 'ad_tag' );413 410 414 411 function ad_get_photo() { … … 417 414 wp_die(); 418 415 } 419 add_action( 'wp_ajax_ad_get_photo', 'ad_get_photo' );420 416 421 417 function ad_analytics() { 422 418 echo APIManager::getInstance()->postAnalytic($_POST['analytic']); 423 419 } 424 add_action( 'wp_ajax_nopriv_ad_analytics', 'ad_analytics');425 //add_action( 'wp_ajax_ad_analytics', 'ad_analytics');426 420 427 421 function ad_admin_notice() { … … 437 431 wp_delete_attachment($_GET['wp_photo_id']); 438 432 DBManager::getInstance()->deletePhoto($_GET['wp_photo_id']); 439 //print_r(APIManager::getInstance()->deletePhoto($_GET['photo_id'])); 440 } 441 } 442 add_action( 'wp_ajax_ad_delete_photo', 'ad_delete_photo' ); 433 } 434 } 443 435 444 436 function ad_remove_tag() { … … 447 439 } 448 440 } 449 add_action( 'wp_ajax_ad_remove_tag', 'ad_remove_tag' ); 441 442 if ( is_admin() ) { 443 add_action( 'wp_ajax_ad_upload', 'ad_upload' ); 444 add_action( 'wp_ajax_ad_tag', 'ad_tag' ); 445 add_action( 'wp_ajax_ad_get_photo', 'ad_get_photo' ); 446 add_action( 'wp_ajax_ad_remove_tag', 'ad_remove_tag' ); 447 add_action( 'wp_ajax_ad_delete_photo', 'ad_delete_photo' ); 448 add_action( 'wp_ajax_ad_analytics', 'ad_analytics'); 449 } else { 450 add_action( 'wp_ajax_nopriv_ad_analytics', 'ad_analytics'); 451 } -
adentify/trunk/readme.txt
r1110997 r1111177 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.1 7 Stable tag: 1.0. 77 Stable tag: 1.0.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 = 1.0.7 = 74 74 * Fix translations 75 = 1.0.8 = 76 * Fix analytics when users are logged
Note: See TracChangeset
for help on using the changeset viewer.