XPressME Integration Kit

Trac

Changeset 283 for trunk


Ignore:
Timestamp:
Jun 16, 2009, 2:09:33 PM (15 years ago)
Author:
toemon
Message:

WP2011のマルチユーザモード時、ユーザ選択を行うと投稿者ブロックにもフィルターがかかってしまうバグ修正 fixes #155

File:
1 edited

Legend:

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

    r282 r283  
    300300                if(xpress_is_wp20()){ 
    301301                        $pattern = "WHERE.*AND\s?\(*post_author\s*="; 
     302                        if ( preg_match ( "/".$pattern."/i", $query, $match ) ){ 
     303                                return $query; 
     304                        } 
     305                        $pattern = "WHERE\s?post_author\s*="; // get_usernumposts() 
    302306                        if ( preg_match ( "/".$pattern."/i", $query, $match ) ){ 
    303307                                return $query; 
Note: See TracChangeset for help on using the changeset viewer.