• Resolved Einkoro

    (@einkoro)


    bbPress pages where $post is NULL (such as user profile pages) throw the following warning and the filter returns immediately:

    Warning: Cannot access property on non-object in wp-content/plugins/wp-content-filter/wp-content-filter.php on line 265

    L264 should be changed from:

    if( in_array( $post->ID, $exclude_id_array ) )

    to:

    if( isset($post) && in_array( $post->ID, $exclude_id_array ) )

    I noticed this when adding the biography and other user profile fields to the filter:

    add_filter(‘bbp_get_displayed_user_field’, ‘pccf_filter’);

    https://www.ads-software.com/plugins/wp-content-filter/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot access property on non-object in wp-content-filter.php on line 264’ is closed to new replies.