XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jan 30, 2009, 9:43:35 PM (16 years ago)
Author:
toemon
Message:

XPressME_Classのインスタンスがあちこちで作られてたので、グローバル化されたインスタンスを使うように変更
xpressmwプラグインを有効にする際にオーバライドでエラーが出る箇所を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/xpressme/xpressme.php

    r72 r75  
    99*/ 
    1010require_once('xpressme_class.php'); 
    11 require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 
     11 
    1212require_once dirname( __FILE__ ).'/include/custom_functions.php' ; 
    13  
    14  
    15 $xpessme = new XPressME_Class(); 
    16  
    1713 
    1814$xoops_db = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); 
     
    2016$xoops_db->tables = array('modules', 'newblocks', 'users'); 
    2117 
    22  
    23 add_action('admin_menu', array(&$xpessme, 'add_option_page')); 
    24 add_action('admin_head', array(&$xpessme, 'add_admin_head')); 
    25 add_filter("upload_dir",array(&$xpessme, 'xpress_upload_filter'),       1);             // Change wp-include/wp_upload_dir() 
    26 if (!$xpressme->is_save_post_revision){ 
     18$XPressME = new XPressME_Class(); 
     19if (!is_admin_page_call()){ 
     20        require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 
     21} 
     22add_action('admin_menu', array(&$XPressME, 'add_option_page')); 
     23add_action('admin_head', array(&$XPressME, 'add_admin_head')); 
     24add_filter("upload_dir",array(&$XPressME, 'xpress_upload_filter'),      1);             // Change wp-include/wp_upload_dir() 
     25if (!$XPressME->is_save_post_revision){ 
    2726        remove_action( 'pre_post_update', 'wp_save_post_revision' );                    // Not Save Post Revision 
    2827} 
Note: See TracChangeset for help on using the changeset viewer.