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 has 0 replies, 1 voice, and was last updated 9 years ago by Anonymous.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #7110
    Anonymous
    Inactive

    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.