[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 05:05:09 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        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 dd32]:
 > IS_PROFILE_PAGE is defined in single-site for both user-edit AND
 profile.php. It's defined as true when it's your own profile, false when
 it's not.

 Yes, by "defined" I meant "true", sorry for being unclear. There's a check
 in `user-edit.php`: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.6/wp-admin/user-edit.php#L14

 Replying to [comment:4 dd32]:
 > It's not defined in the Network Admin at all. ever.

 It is for me, on the same conditions as in single site. Network admin just
 includes `profile.php` and `user-edit.php` from the main `wp-admin`
 directory: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.6/wp-
 admin/network/profile.php [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.6/wp-admin/network/user-
 edit.php

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


More information about the wp-trac mailing list