Skip to:
Content

BuddyPress.org

Changes between Version 1 and Version 2 of Ticket #5241, comment 2


Ignore:
Timestamp:
11/13/2013 11:03:09 AM (11 years ago)
Author:
henrywright
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5241, comment 2

    v1 v2  
    22
    33Considering the attempts to get the $post property are all wrapped in a {{{is_singular()}}} check (see lines 548, 840 and 843 in {{{class-frontend.php}}}), should that particular piece of plugin code be running at all at the point of change-avatar or private message search? The change-avatar and private message pages are not any of {{{is_single()}}}, {{{is_page()}}} or {{{is_attachment()}}} are they?
     4
     5UPDATE: I've been doing some investigation and can see an {{{is_singular()}}} check is being used around the code attempting to get the $post property. {{{is_page()}}} seems to return true for the BuddyPress change-avatar and private message pages (where there notices are displayed) but the {{{$post}}} variable seems to be null here. Could this be the reason why toys are being thrown out of the push buggy?