[wp-trac] [WordPress Trac] #25936: Invalid callback when attempting to access certain pages while logged out

WordPress Trac noreply at wordpress.org
Wed Nov 13 12:18:57 UTC 2013


#25936: Invalid callback when attempting to access certain pages while logged out
--------------------------+------------------------------
 Reporter:  henrywright   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 BuddyPress ticket: http://buddypress.trac.wordpress.org/ticket/4990.

 This appears to be a conflict between BuddyPress and Theme My Login.

 BuddyPress adds `wp_shake_js()` function to the `'login_head'` action in
 two places:
 http://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-core/bp-core-
 catchuri.php#L514
 http://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-members/bp-
 members-functions.php#L1503

 The function is only defined in `wp-login.php` and not on a custom page
 created by Theme My Login.

 I see three options to fix the issue:
 1. In BuddyPress, check if the function exists before using it.
 2. In Theme My Login, define the function if it doesn't exist.
 3. In core, move the function to a file in `wp-includes`, like we did for
 several functions in [25231].

 I think 1 & 2 would be enough, as `wp_shake_js()` seems intrinsic to `wp-
 login.php` and does not belong in any other file.

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


More information about the wp-trac mailing list