Skip to:
Content

BuddyPress.org

Changeset 8404


Ignore:
Timestamp:
05/10/2014 12:46:57 AM (11 years ago)
Author:
boonebgorges
Message:

bp_has_activities() show default to show_hidden=true for members of a group

Requiring the group to be non-public, as was previously the case, meant that
group members were unable to see legitimate group activity that was marked
hide_sitewide for some reason (such as when a group was previously non-public).

Fixes #2014

Props sbrajesh

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r8402 r8404  
    508508        $primary_id = $bp->groups->current_group->id;
    509509
    510         if ( ( 'public' != $bp->groups->current_group->status ) && ( groups_is_user_member( bp_loggedin_user_id(), $bp->groups->current_group->id ) || bp_current_user_can( 'bp_moderate' ) ) )
     510        if ( groups_is_user_member( bp_loggedin_user_id(), $bp->groups->current_group->id ) || bp_current_user_can( 'bp_moderate' ) ) {
    511511            $show_hidden = true;
     512        }
    512513    }
    513514
  • trunk/src/bp-languages/buddypress.pot

    r8402 r8404  
    55"Project-Id-Version: BuddyPress 2.1-alpha\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/buddypress\n"
    7 "POT-Creation-Date: 2014-05-09 19:15:25+00:00\n"
     7"POT-Creation-Date: 2014-05-10 00:44:57+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    671671
    672672#: bp-activity/bp-activity-loader.php:342
    673 #: bp-activity/bp-activity-template.php:1208
    674 #: bp-activity/bp-activity-template.php:1358
    675 #: bp-activity/bp-activity-template.php:1369 bp-blogs/bp-blogs-loader.php:236
     673#: bp-activity/bp-activity-template.php:1209
     674#: bp-activity/bp-activity-template.php:1359
     675#: bp-activity/bp-activity-template.php:1370 bp-blogs/bp-blogs-loader.php:236
    676676#: bp-forums/bp-forums-loader.php:245 bp-forums/bp-forums-template.php:730
    677677#: bp-forums/bp-forums-template.php:960 bp-forums/bp-forums-template.php:1990
     
    808808msgstr ""
    809809
    810 #: bp-activity/bp-activity-template.php:737
     810#: bp-activity/bp-activity-template.php:738
    811811msgid "Viewing item %1$s to %2$s (of %3$s item)"
    812812msgid_plural "Viewing item %1$s to %2$s (of %3$s items)"
     
    814814msgstr[1] ""
    815815
    816 #: bp-activity/bp-activity-template.php:1208
     816#: bp-activity/bp-activity-template.php:1209
    817817msgid "Profile picture"
    818818msgstr ""
    819819
    820 #: bp-activity/bp-activity-template.php:1334
     820#: bp-activity/bp-activity-template.php:1335
    821821msgid "Group logo"
    822822msgstr ""
    823823
    824 #: bp-activity/bp-activity-template.php:1337 bp-groups/bp-groups-admin.php:1410
     824#: bp-activity/bp-activity-template.php:1338 bp-groups/bp-groups-admin.php:1410
    825825#: bp-groups/bp-groups-template.php:539
    826826msgid "Group logo of %s"
    827827msgstr ""
    828828
    829 #: bp-activity/bp-activity-template.php:1348
     829#: bp-activity/bp-activity-template.php:1349
    830830msgid "Profile picture of the author of the site %s"
    831831msgstr ""
    832832
    833 #: bp-activity/bp-activity-template.php:1578
     833#: bp-activity/bp-activity-template.php:1579
    834834msgid "View Discussion"
    835835msgstr ""
    836836
    837 #: bp-activity/bp-activity-template.php:2480
     837#: bp-activity/bp-activity-template.php:2481
    838838#: bp-forums/bp-forums-template.php:2113 bp-groups/bp-groups-admin.php:1286
    839839#: bp-groups/bp-groups-admin.php:1399 bp-groups/bp-groups-template.php:1551
     
    853853msgstr ""
    854854
    855 #: bp-activity/bp-activity-template.php:2528
     855#: bp-activity/bp-activity-template.php:2529
    856856#: bp-core/admin/bp-core-slugs.php:109 bp-core/admin/bp-core-slugs.php:172
    857857#: bp-core/bp-core-loader.php:244 bp-members/bp-members-loader.php:211
     
    865865msgstr ""
    866866
    867 #: bp-activity/bp-activity-template.php:2626
     867#: bp-activity/bp-activity-template.php:2627
    868868msgid "Clear Filter"
    869869msgstr ""
    870870
    871 #: bp-activity/bp-activity-template.php:2860
     871#: bp-activity/bp-activity-template.php:2861
    872872msgid "a user"
    873873msgstr ""
    874874
    875 #: bp-activity/bp-activity-template.php:2914
     875#: bp-activity/bp-activity-template.php:2915
    876876msgid "Send a public message on your activity stream."
    877877msgstr ""
    878878
    879 #: bp-activity/bp-activity-template.php:2915
     879#: bp-activity/bp-activity-template.php:2916
    880880msgid "Public Message"
    881881msgstr ""
    882882
    883 #: bp-activity/bp-activity-template.php:3368
     883#: bp-activity/bp-activity-template.php:3369
    884884msgid "Site Wide Activity RSS Feed"
    885885msgstr ""
Note: See TracChangeset for help on using the changeset viewer.