Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatars not showing because backslash stripped by core


  • nolimit966
    Participant

    @nolimit966

    Hi, ive had problems from my users that avatars are not showing in the forums. I checked it out & it seems theres a backslash being removed from the URL to the image. I had to remove:
    add_filter( ‘bbp_get_topic_author_link’, ‘stripslashes’ ); from the filters.php and it now all works fine. Problem is my theme is in source control and surely editing core files cannot be correct, right?

    This is in my loop-single-topic.php file and this is what displays the name and avatar:
    <span class=”bbp-topic-started-by”><?php printf( __( ‘Started by: %1$s’), “”.bbp_get_topic_author_link( array( ‘size’ => ’90’))); ?></span>

    Is this a known bug and is there a better way to fix this? I am using the latest BBpress and WordPress 4.0. Avatar plugin is WP User Avatar

    Thanks

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar