XPressME Integration Kit

Trac

Changeset 281


Ignore:
Timestamp:
Jun 16, 2009, 12:14:21 PM (16 years ago)
Author:
toemon
Message:

WP2011のときマルチユーザモードが有効にならないバグ修正 fixes #152

File:
1 edited

Legend:

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

    r280 r281  
    8484add_filter('query','xpress_query_filter'); 
    8585//add_action("init", "xpress_set_author_cookie"); 
    86 add_filter('request', 'xpress_set_author_cookie'); 
     86if(xpress_is_wp20()){ 
     87        // It is called before parse_request() makes $GET.  
     88        add_action("query_vars", "xpress_set_author_cookie"); 
     89} else { 
     90        // It is called at the end of parse_request().  
     91        add_filter('request', 'xpress_set_author_cookie'); 
     92} 
    8793 
    8894// SQL debug windows 
Note: See TracChangeset for help on using the changeset viewer.