Skip to:
Content

BuddyPress.org

Ticket #8610: 8610.patch

File 8610.patch, 1.3 KB (added by imath, 3 years ago)
  • src/bp-friends/bp-friends-blocks.php

    diff --git src/bp-friends/bp-friends-blocks.php src/bp-friends/bp-friends-blocks.php
    index 171b603e7..9bdc0d0e4 100644
    function bp_friends_render_friends_block( $attributes = array() ) { 
    210210                                );
    211211                        }
    212212                }
    213         } else {
     213        } elseif ( defined( 'WP_USE_THEMES' ) ) {
    214214                // Get corresponding friends.
    215215                $path = sprintf(
    216216                        '/%1$s/%2$s/%3$s',
  • src/bp-groups/bp-groups-blocks.php

    diff --git src/bp-groups/bp-groups-blocks.php src/bp-groups/bp-groups-blocks.php
    index 34ab0669b..d61ca4ea7 100644
    function bp_groups_render_dynamic_groups_block( $attributes = array() ) { 
    486486                                );
    487487                        }
    488488                }
    489         } else {
     489        } elseif ( defined( 'WP_USE_THEMES' ) ) {
    490490                // Get corresponding members.
    491491                $path = sprintf(
    492492                        '/%1$s/%2$s/%3$s',
  • src/bp-members/bp-members-blocks.php

    diff --git src/bp-members/bp-members-blocks.php src/bp-members/bp-members-blocks.php
    index 5aebb4857..7ccfc5b66 100644
    function bp_members_render_dynamic_members_block( $attributes = array() ) { 
    503503                                );
    504504                        }
    505505                }
    506         } else {
     506        } elseif ( defined( 'WP_USE_THEMES' ) ) {
    507507                // Get corresponding members.
    508508                $path = sprintf(
    509509                        '/%1$s/%2$s/%3$s',