Skip to:
Content

BuddyPress.org

Ticket #7955: 7955.patch

File 7955.patch, 2.4 KB (added by imath, 7 years ago)
  • src/bp-templates/bp-nouveau/buddypress/groups/single/members-loop.php

    diff --git src/bp-templates/bp-nouveau/buddypress/groups/single/members-loop.php src/bp-templates/bp-nouveau/buddypress/groups/single/members-loop.php
    index a1a9ec602..6976ed2b2 100644
     
    6262
    6363        <?php bp_nouveau_group_hook( 'after', 'members_content' ); ?>
    6464
    65 <?php else : ?>
     65<?php else :
    6666
    67                 bp_nouveau_user_feedback( 'group-members-none' );
     67        bp_nouveau_user_feedback( 'group-members-none' );
    6868
    69 <?php
    7069endif;
  • src/bp-templates/bp-nouveau/includes/template-tags.php

    diff --git src/bp-templates/bp-nouveau/includes/template-tags.php src/bp-templates/bp-nouveau/includes/template-tags.php
    index fb8984546..432d1e224 100644
    function bp_nouveau_search_form() { 
    19041904                         */
    19051905                        do_action( 'bp_members_directory_member_sub_types' );
    19061906                }
    1907         } elseif ( 'group' === $objects['primary'] && 'activity' === $objects['secondary'] ) {
    1908                 /**
    1909                  * Fires inside the syndication options list, after the RSS option.
    1910                  *
    1911                  * @since 1.2.0
    1912                  */
    1913                 do_action( 'bp_group_activity_syndication_options' );
     1907        } elseif ( 'group' === $objects['primary'] ) {
     1908                if ( 'members' !== $objects['secondary'] ) {
     1909                        /**
     1910                         * Filter here to edit the HTML output of the displayed group search form.
     1911                         *
     1912                         * @since 3.2.0
     1913                         *
     1914                         * @param string $search_form_html The HTML output for the directory search form.
     1915                         */
     1916                        echo apply_filters( "bp_group_{$objects['secondary']}_search_form", $search_form_html );
     1917
     1918                } else {
     1919                        /**
     1920                         * Filters the Members component search form.
     1921                         *
     1922                         * @since 1.9.0
     1923                         *
     1924                         * @param string $search_form_html HTML markup for the member search form.
     1925                         */
     1926                        echo apply_filters( 'bp_directory_members_search_form', $search_form_html );
     1927                }
     1928
     1929                if ( 'members' === $objects['secondary'] ) {
     1930                        /**
     1931                         * Fires at the end of the group members search unordered list.
     1932                         *
     1933                         * Part of bp_groups_members_template_part().
     1934                         *
     1935                         * @since 1.5.0
     1936                         */
     1937                        do_action( 'bp_members_directory_member_sub_types' );
     1938
     1939                } elseif ( 'activity' === $objects['secondary'] ) {
     1940                        /**
     1941                         * Fires inside the syndication options list, after the RSS option.
     1942                         *
     1943                         * @since 1.2.0
     1944                         */
     1945                        do_action( 'bp_group_activity_syndication_options' );
     1946                }
    19141947        }
    19151948}
    19161949