Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
mehedi-bb committed Aug 6, 2024
2 parents 065d0a8 + ed899a4 commit 5041cc1
Show file tree
Hide file tree
Showing 32 changed files with 567 additions and 255 deletions.
2 changes: 1 addition & 1 deletion bp-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: The BuddyBoss Platform adds community features to WordPress. Member Profiles, Activity Feeds, Direct Messaging, Notifications, and more!
* Author: BuddyBoss
* Author URI: https://buddyboss.com/
* Version: 2.6.60
* Version: 2.6.70
* Text Domain: buddyboss
* Domain Path: /bp-languages/
* License: GPLv2 or later (license.txt)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
},
"license": "GPL-2.0-or-later",
"version": "3.1.0",
"BBVersion": "2.6.60"
"BBVersion": "2.6.70"
}
1 change: 1 addition & 0 deletions src/bp-activity/bp-activity-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5400,6 +5400,7 @@ function bp_activity_default_scope( $scope = 'all' ) {

if ( bp_is_single_activity() && bp_is_active( 'media' ) ) {
$new_scope[] = 'media';
$new_scope[] = 'video';
$new_scope[] = 'document';
}
} elseif ( bp_is_user_activity() ) {
Expand Down
4 changes: 2 additions & 2 deletions src/bp-activity/bp-activity-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ function bp_activity_user_can_delete( $activity = false ) {
}

// Viewing a single item, and this user is an admin of that item.
if ( bp_is_single_item() && bp_is_item_admin() ) {
if ( 'groups' !== $activity->component && bp_is_single_item() && bp_is_item_admin() ) {
$can_delete = true;
}
}
Expand Down Expand Up @@ -2848,7 +2848,7 @@ function bp_get_activity_css_class() {
$link_preview_data = ! empty( $activity_metas['_link_preview_data'][0] ) ? maybe_unserialize( $activity_metas['_link_preview_data'][0] ) : array();

if (
'0' !== $link_embed ||
! empty( $link_embed ) ||
! empty( $link_preview_data )
) {
$class .= ' wp-link-embed';
Expand Down
6 changes: 6 additions & 0 deletions src/bp-core/bp-core-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,12 @@ function bp_create_excerpt( $text, $length = 225, $options = array() ) {
$text = strip_shortcodes( $text );
}

// Remove all matched wp block comments from the content.
if ( function_exists( 'has_blocks' ) && has_blocks( $text ) ) {
$pattern = '/<!--\s*\/?wp:[^>]+-->/';
$text = preg_replace( $pattern, '', $text );
}

// When $html is true, the excerpt should be created without including HTML tags in the
// excerpt length.
if ( ! empty( $r['html'] ) ) {
Expand Down
8 changes: 4 additions & 4 deletions src/bp-core/js/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ jQuery( document ).ready( function() {


function bp_register_validate_email() {
var email1 = emailSelector.val(),
email2 = confirmEmailSelector.val(),
var email1 = emailSelector.val().toLowerCase(),
email2 = confirmEmailSelector.val().toLowerCase(),
regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
errorMessageSelector = jQuery( '#email-strength-result' );

Expand Down Expand Up @@ -366,8 +366,8 @@ jQuery( document ).ready( function() {
return;
}

var email1 = emailSelector.val(),
email2 = confirmEmailSelector.val(),
var email1 = emailSelector.val().toLowerCase(),
email2 = confirmEmailSelector.val().toLowerCase(),
regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
errorMessageSelector = jQuery( '#email-strength-result' );

Expand Down
2 changes: 1 addition & 1 deletion src/bp-core/js/register.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/bp-document/bp-document-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5195,7 +5195,12 @@ function bb_document_get_activity_document( $activity = '', $args = array() ) {

// Get activity metas.
$activity_metas = bb_activity_get_metadata( $activity->id );
$document_ids = ! empty( $activity_metas['bp_document_ids'][0] ) ? $activity_metas['bp_document_ids'][0] : '';
$document_ids = '';
if ( ! empty( $activity_metas['bp_document_ids'][0] ) ) {
$document_ids = $activity_metas['bp_document_ids'][0];
} elseif ( ! empty( $activity_metas['bp_document_id'][0] ) ) {
$document_ids = $activity_metas['bp_document_id'][0];
}

if ( empty( $document_ids ) ) {
return false;
Expand Down
Loading

0 comments on commit 5041cc1

Please sign in to comment.