Changeset 91
- Timestamp:
- Feb 13, 2009, 5:09:17 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/include_xoops_define.php
r68 r91 72 72 } 73 73 74 function is_wp_cron_call(){ 75 $xpress_root_index = basename(dirname(dirname( __FILE__ ))) . '/wp-cron.php'; 76 $php_script_name = $_SERVER['SCRIPT_NAME']; 77 if (strstr($php_script_name,$xpress_root_index) !== false) return true; else return false; 78 } 79 80 81 if (is_wp_cron_call() ){ 82 $_SERVER['HTTP_REFERER'] = 'http://'. $_SERVER[HTTP_HOST] . $_SERVER['PHP_SELF']; 83 $_SERVER['REQUEST_METHOD'] = 'POST'; 84 } 85 74 86 if (is_media_upload_page_call() ){ 75 87 if ( !defined("XOOPS_ROOT_PATH") ) { -
trunk/wp-content/plugins/xpressme/include/notify_functions.php
r61 r91 1 1 <?php 2 2 3 function onaction_publish_post_notify($ post_id)3 function onaction_publish_post_notify($new_status, $old_status, $post) 4 4 { 5 include_once ABSPATH . '/include/notification.inc.sub.php'; 6 do_PostNotifications($post_id,'newpost'); 5 if ($new_status == 'publish'){ 6 include_once dirname(__FILE__) . '/notification.inc.sub.php'; 7 do_PostNotifications($post->ID,'newpost'); 8 } 7 9 } 10 8 11 function onaction_edit_post_notify($post_id) 9 12 { -
trunk/wp-content/plugins/xpressme/xpressme.php
r88 r91 39 39 //XOOPS notifiction 40 40 require_once dirname( __FILE__ ).'/include/notify_functions.php' ; 41 add_action(" private_to_published", "onaction_publish_post_notify");41 add_action("transition_post_status", "onaction_publish_post_notify" ,10 , 3); 42 42 // add_action("edit_post", "onaction_edit_post_notify"); 43 43 add_action("comment_post", "onaction_comment_notify");
Note: See TracChangeset
for help on using the changeset viewer.