XPressME Integration Kit

Trac


Ignore:
Timestamp:
Oct 23, 2009, 8:21:10 PM (15 years ago)
Author:
toemon
Message:

do_PostNotifications() WPMU対応 Fixed #236
ついでの do_CommentNotifications()も対応修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/XPressMU/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php

    r352 r419  
    7878function do_CommentNotifications($commentID, $comment_post_ID) 
    7979{ 
    80         global $xoops_config , $xoops_db; 
    81  
    82         $xpress_prefix = get_wp_prefix() ; 
    83  
    84         $table_term_relationships = $xpress_prefix .'term_relationships'; 
    85         $table_term_taxonomy = $xpress_prefix .'term_taxonomy'; 
    86         $table_terms = $xpress_prefix .'terms'; 
    87         $table_categories = $xpress_prefix .'categories'; 
    88         $wp_post = $xpress_prefix .'posts'; 
    89         $wp_options = $xpress_prefix .'options'; 
    90         $wp_users  = $xpress_prefix .'users'; 
    91         $wp_comments  = $xpress_prefix .'comments'; 
     80        global $wpdb, $xoops_config , $xoops_db; 
     81 
     82        $table_term_relationships = $wpdb->term_relationships; 
     83        $table_term_taxonomy = $wpdb->term_taxonomy; 
     84        $table_terms = $wpdb->terms; 
     85        $table_categories = $wpdb->categories; 
     86        $wp_post = $wpdb->posts; 
     87        $wp_options = $wpdb->options; 
     88        $wp_users  = $wpdb->users; 
     89        $wp_comments  = $wpdb->comments; 
     90         
    9291        $post_id = $comment_post_ID; 
    9392 
     
    128127function do_PostNotifications($post_id,$not_event) 
    129128{ 
    130         global $xoops_config, $xoops_db; 
    131          
    132  
     129        global $wpdb, $xoops_config, $xoops_db; 
    133130 
    134131         // $not_event:         newpost,editpost ; $commentID, $comment_post_ID) 
    135           
    136         $xpress_prefix = get_wp_prefix() ; 
    137  
    138         $table_term_relationships = $xpress_prefix .'term_relationships'; 
    139         $table_term_taxonomy = $xpress_prefix .'term_taxonomy'; 
    140         $table_terms = $xpress_prefix .'terms'; 
    141         $table_categories = $xpress_prefix .'categories'; 
    142         $wp_post = $xpress_prefix .'posts'; 
    143         $wp_options = $xpress_prefix .'options'; 
    144         $wp_users  = $xpress_prefix .'users'; 
    145         $wp_comments  = $xpress_prefix .'comments'; 
     132         
     133        $table_term_relationships = $wpdb->term_relationships; 
     134        $table_term_taxonomy = $wpdb->term_taxonomy; 
     135        $table_terms = $wpdb->terms; 
     136        $table_categories = $wpdb->categories; 
     137        $wp_post = $wpdb->posts; 
     138        $wp_options = $wpdb->options; 
     139        $wp_users  = $wpdb->users; 
     140        $wp_comments  = $wpdb->comments; 
    146141 
    147142        $post_title = get_the_title($post_id); 
Note: See TracChangeset for help on using the changeset viewer.