[wp-trac] [WordPress Trac] #22589: Network Admin + Ajax requests

WordPress Trac noreply at wordpress.org
Sat Jun 29 20:55:44 UTC 2013


#22589: Network Admin + Ajax requests
----------------------------+------------------------------
 Reporter:  dd32            |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by TroyDesign):

 +1 I have same problem.
 I wrote a small workaroud:


 {{{
 if (defined('DOING_AJAX') && DOING_AJAX && is_multisite() &&
 preg_match('#^'.network_admin_url().'#i',$_SERVER['HTTP_REFERER'])) {
         define('WP_NETWORK_ADMIN',true);
 }
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/22589#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list