Changeset 75 for trunk/wp-content/plugins/xpressme/xpressme.php
- Timestamp:
- Jan 30, 2009, 9:43:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/xpressme.php
r72 r75 9 9 */ 10 10 require_once('xpressme_class.php'); 11 require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 11 12 12 require_once dirname( __FILE__ ).'/include/custom_functions.php' ; 13 14 15 $xpessme = new XPressME_Class();16 17 13 18 14 $xoops_db = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); … … 20 16 $xoops_db->tables = array('modules', 'newblocks', 'users'); 21 17 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(); 19 if (!is_admin_page_call()){ 20 require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 21 } 22 add_action('admin_menu', array(&$XPressME, 'add_option_page')); 23 add_action('admin_head', array(&$XPressME, 'add_admin_head')); 24 add_filter("upload_dir",array(&$XPressME, 'xpress_upload_filter'), 1); // Change wp-include/wp_upload_dir() 25 if (!$XPressME->is_save_post_revision){ 27 26 remove_action( 'pre_post_update', 'wp_save_post_revision' ); // Not Save Post Revision 28 27 }
Note: See TracChangeset
for help on using the changeset viewer.