Skip to content

Commit f097b3e

Browse files
committed
Remove XMLRPC exception (not need for members usage)
1 parent 4834144 commit f097b3e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

classes/helpers/class-member-auth.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,16 +281,13 @@ public static function set_current_member($id, $name = '') {
281281
* set the current member to 0, which is invalid and won't have any permissions.
282282
*
283283
* @uses $current_mpt_member Checks if the current member is set
284-
* @uses wp_validate_auth_cookie() Retrieves current logged in member.
284+
* @uses SELF::validate_auth_cookie() Retrieves current logged in member.
285285
*
286-
* @return bool|null False on XMLRPC Request and invalid auth cookie. Null when current member set
286+
* @return bool|null False on invalid auth cookie. Null when current member set
287287
*/
288288
public static function get_current_member_info() {
289289
global $current_mpt_member;
290-
291-
if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST )
292-
return false;
293-
290+
294291
if ( ! empty($current_mpt_member) )
295292
return false;
296293

0 commit comments

Comments
 (0)