XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 11, 2009, 1:17:59 PM (15 years ago)
Author:
toemon
Message:

Bump Ver 0.32 #104 Prefix変更時のメタ情報自動修正の実装 
備考 
Prefixが変更されると、メタ情報からユーザレベルが取得できなくなるので、ユーザー権限がなくなってしまいます。
メタ情報自動修正は最初のアクセスで修正されるので、最初のアクセス時はまだ修正済みメタ情報が有効にならない場合がありますが
2回目のアクセス(ページ更新など)以降から、修正済みメタ情報が有効になります。

File:
1 edited

Legend:

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

    r173 r175  
    3838                if (check_xpress_auth_cookie()){        //The cookie is login user's or it checks it 
    3939                        if ( $user = wp_validate_auth_cookie() ) { 
     40                                if (!check_user_meta_prefix($user)){ 
     41                                        repair_user_meta_prefix(); 
     42                                } 
     43 
    4044                                wp_set_current_user($user); 
    4145                                return ; 
Note: See TracChangeset for help on using the changeset viewer.