View Single Post
02-08-2011, 06:40 PM   #35
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
Quote:
Originally Posted by freak99 View Post
Jeff, the above code didn't work, but this seems to.

Code:
if (( !preg_match('#wp-admin#', $_POST['redirect_to']) and !defined('WP_ADMIN')) and !defined('XMLRPC_REQUEST')):
Look ok to you?
Yes actually that makes more sense. I thought I negated that part about the XMLRPC_REQUEST. Yes, that should work.
Jeff is offline   Reply With Quote