WP AJAX Edit Comments to find comments loaded inline. Author: Aaron Harun Version: 1.0 AWP Release: 1.0 Author URI: http://anthologyoi.com/ */ if(strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false){ add_action('awp_admin_other',array('AWP_aecomments','admin')); add_filter('awp_get_options',array('AWP_aecomments','awp_get_options')); }elseif($awpall['aecomments'] == 'Enabled'){ add_filter('awp_ajax_comments_actions', array('AWP_aecomments','update_aecomments')); add_action('init', array('AWP_aecomments','init')); } register_activation_hook(__file__,array('AWP_aecomments','set_defaults')); class AWP_aecomments { function init(){ if(class_exists('WPrapAjaxEditComments')) WPrapAjaxEditComments::JS(); } function update_aecomments($actions){ global $awpall; $actions[] = 'setTimeout("try{AjaxEditComments.init();}catch(e){}",1000);'; return $actions; } function admin(){ global $aWP, $awpall; ob_start(); ?>