[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 22:12:21 UTC 2013


#25202: IS_PROFILE_PAGE not detectable by plugins on Network/user-edit page
--------------------------+----------------------
 Reporter:  Ipstenu       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Multisite     |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:9 Ipstenu]:
 > The WP is 'doing it wrong' too, because IS_PROFILE_PAGE also works when
 an admin is editing another user's profile.

 It does not for me on a clean install. There's a check in `user-edit.php`
 that explicitly defines `IS_PROFILE_PAGE` as true only if it's your own
 profile: http://core.trac.wordpress.org/browser/tags/3.6/wp-admin/user-
 edit.php#L14.

 Is it defined somewhere earlier on your install?

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


More information about the wp-trac mailing list