[wp-trac] [WordPress Trac] #25202: IS_PROFILE_PAGE not detectable by plugins on Network/user-edit page

WordPress Trac noreply at wordpress.org
Sun Sep 1 03:41:22 UTC 2013


#25202: IS_PROFILE_PAGE not detectable by plugins on Network/user-edit page
--------------------------+-----------------------------
 Reporter:  Ipstenu       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 I was testing MP6, which uses {{{if ( defined( 'IS_PROFILE_PAGE' ) )}}} to
 detect if you're on a profile page, and to load a JS there if so.

 When I went to /wp-admin/network/user-edit.php their JS wasn't loading.

 If I add {{{define('IS_PROFILE_PAGE', true);}}} to that page, everything
 works, but it appears that the require for /wp-admin/user-edit.php doesn't
 pull that define in.

 No idea at all if this is the right fix to force it in, or if the plugin
 should be detecting something else, or if this is endemic of an even
 bigger problem.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25202>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list