BuddyPress strstr() Empty delimiter in /buddypress/bp-core/bp-core-template.php on line 864

Home Forums BulletProof Security Free BuddyPress strstr() Empty delimiter in /buddypress/bp-core/bp-core-template.php on line 864

This topic contains 0 replies, has 1 voice, and was last updated by  Anonymous 6 years, 3 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #7110

    Anonymous

    Testing BuddyPress upgrade to 1.7.2 and code Mods for BuddyPresss errors with Empty Delimiter in BP Core Template line 864

    original code:

    if ( !empty( $page_template ) && strstr( strtolower( $page_template ), strtolower( $component ) ) ) {

    Mod fix:

    if ( !empty( $page_template ) && !empty( $component ) && strstr( strtolower( $page_template ), strtolower( $component ) ) ) {
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.