Version Description
See: https://codex.buddypress.org/releases/version-10-1-0/
Download this release
Release Info
Developer | imath |
Plugin | BuddyPress |
Version | 10.1.0 |
Comparing to | |
See all releases |
Code changes from version 10.0.0 to 10.1.0
- bp-activity/classes/class-bp-activity-oembed-extension.php +1 -1
- bp-blogs/bp-blogs-functions.php +5 -5
- bp-blogs/classes/class-bp-blogs-blog.php +4 -4
- bp-core/bp-core-widgets.php +16 -9
- bp-core/classes/class-bp-optouts-list-table.php +11 -0
- bp-loader.php +1 -1
- bp-members/bp-members-admin.php +1 -1
- bp-members/bp-members-functions.php +1 -1
- bp-members/classes/class-bp-members-invitations-list-table.php +11 -0
- bp-members/screens/change-avatar.php +1 -1
- bp-members/screens/register.php +1 -1
- bp-notifications/bp-notifications-cache.php +17 -0
- bp-notifications/classes/class-bp-notifications-notification.php +20 -9
- bp-settings/actions/general.php +1 -1
- bp-templates/bp-nouveau/includes/activity/ajax.php +3 -3
- bp-xprofile/classes/class-bp-xprofile-field.php +5 -8
- buddypress.pot +77 -77
- class-buddypress.php +1 -1
- readme.txt +8 -2
bp-activity/classes/class-bp-activity-oembed-extension.php
CHANGED
@@ -91,7 +91,7 @@ class BP_Activity_oEmbed_Extension extends BP_Core_oEmbed_Extension {
|
|
91 |
}
|
92 |
|
93 |
// Check the URL to see if this is a single activity URL.
|
94 |
-
if ( 0 !== strpos( $url, $domain ) ) {
|
95 |
return false;
|
96 |
}
|
97 |
|
91 |
}
|
92 |
|
93 |
// Check the URL to see if this is a single activity URL.
|
94 |
+
if ( is_array( $url ) || 0 !== strpos( $url, $domain ) ) {
|
95 |
return false;
|
96 |
}
|
97 |
|
bp-blogs/bp-blogs-functions.php
CHANGED
@@ -1253,16 +1253,16 @@ function bp_blogs_get_all_blogs( $limit = null, $page = null ) {
|
|
1253 |
*
|
1254 |
* @see BP_Blogs_Blog::get() for a description of parameters and return values.
|
1255 |
*
|
1256 |
-
* @param int|null $
|
1257 |
* @param int|null $page See {@BP_Blogs_Blog::get()}.
|
1258 |
* @return array See {@BP_Blogs_Blog::get()}.
|
1259 |
*/
|
1260 |
-
function bp_blogs_get_random_blogs( $
|
1261 |
return BP_Blogs_Blog::get(
|
1262 |
array(
|
1263 |
-
'type'
|
1264 |
-
'
|
1265 |
-
'page'
|
1266 |
)
|
1267 |
);
|
1268 |
}
|
1253 |
*
|
1254 |
* @see BP_Blogs_Blog::get() for a description of parameters and return values.
|
1255 |
*
|
1256 |
+
* @param int|null $per_page See {@BP_Blogs_Blog::get()}.
|
1257 |
* @param int|null $page See {@BP_Blogs_Blog::get()}.
|
1258 |
* @return array See {@BP_Blogs_Blog::get()}.
|
1259 |
*/
|
1260 |
+
function bp_blogs_get_random_blogs( $per_page = null, $page = null ) {
|
1261 |
return BP_Blogs_Blog::get(
|
1262 |
array(
|
1263 |
+
'type' => 'random',
|
1264 |
+
'per_page' => $per_page,
|
1265 |
+
'page' => $page
|
1266 |
)
|
1267 |
);
|
1268 |
}
|
bp-blogs/classes/class-bp-blogs-blog.php
CHANGED
@@ -170,7 +170,7 @@ class BP_Blogs_Blog {
|
|
170 |
* Array of site data to query for.
|
171 |
* @type string $type The order in which results should be returned.
|
172 |
* 'active', 'alphabetical', 'newest', or 'random'.
|
173 |
-
* @type int|bool $
|
174 |
* Default: false.
|
175 |
* @type int|bool $page Optional. The page of records to return.
|
176 |
* Default: false (unlimited results).
|
@@ -200,7 +200,7 @@ class BP_Blogs_Blog {
|
|
200 |
|
201 |
$old_args_keys = [
|
202 |
0 => 'type',
|
203 |
-
1 => '
|
204 |
2 => 'page',
|
205 |
3 => 'user_id',
|
206 |
4 => 'search_terms',
|
@@ -217,7 +217,7 @@ class BP_Blogs_Blog {
|
|
217 |
$args,
|
218 |
array(
|
219 |
'type' => 'active',
|
220 |
-
'
|
221 |
'page' => false,
|
222 |
'user_id' => 0,
|
223 |
'search_terms' => false,
|
@@ -233,7 +233,7 @@ class BP_Blogs_Blog {
|
|
233 |
$hidden_sql = '';
|
234 |
}
|
235 |
|
236 |
-
$pag_sql = ( $r['
|
237 |
|
238 |
$user_sql = ! empty( $r['user_id'] ) ? $wpdb->prepare( " AND b.user_id = %d", $r['user_id'] ) : '';
|
239 |
|
170 |
* Array of site data to query for.
|
171 |
* @type string $type The order in which results should be returned.
|
172 |
* 'active', 'alphabetical', 'newest', or 'random'.
|
173 |
+
* @type int|bool $per_page Optional. The number of records to return per page.
|
174 |
* Default: false.
|
175 |
* @type int|bool $page Optional. The page of records to return.
|
176 |
* Default: false (unlimited results).
|
200 |
|
201 |
$old_args_keys = [
|
202 |
0 => 'type',
|
203 |
+
1 => 'per_page',
|
204 |
2 => 'page',
|
205 |
3 => 'user_id',
|
206 |
4 => 'search_terms',
|
217 |
$args,
|
218 |
array(
|
219 |
'type' => 'active',
|
220 |
+
'per_page' => false,
|
221 |
'page' => false,
|
222 |
'user_id' => 0,
|
223 |
'search_terms' => false,
|
233 |
$hidden_sql = '';
|
234 |
}
|
235 |
|
236 |
+
$pag_sql = ( $r['per_page'] && $r['page'] ) ? $wpdb->prepare( " LIMIT %d, %d", intval( ( $r['page'] - 1 ) * $r['per_page']), intval( $r['per_page'] ) ) : '';
|
237 |
|
238 |
$user_sql = ! empty( $r['user_id'] ) ? $wpdb->prepare( " AND b.user_id = %d", $r['user_id'] ) : '';
|
239 |
|
bp-core/bp-core-widgets.php
CHANGED
@@ -69,29 +69,36 @@ function bp_core_maybe_unhook_legacy_widgets() {
|
|
69 |
}
|
70 |
|
71 |
$callbacks = array(
|
72 |
-
'bp_core_register_login_widget',
|
73 |
-
'bp_members_register_members_widget',
|
74 |
-
'bp_members_register_whos_online_widget',
|
75 |
-
'bp_members_register_recently_active_widget',
|
76 |
);
|
77 |
|
78 |
if ( bp_is_active( 'friends' ) ) {
|
79 |
-
$callbacks[] = 'bp_friends_register_friends_widget';
|
80 |
}
|
81 |
|
82 |
if ( bp_is_active( 'groups' ) ) {
|
83 |
-
$callbacks[] = 'bp_groups_register_groups_widget';
|
84 |
}
|
85 |
|
86 |
if ( bp_is_active( 'messages' ) ) {
|
87 |
-
$callbacks[] = 'bp_messages_register_sitewide_notices_widget';
|
88 |
}
|
89 |
|
90 |
if ( bp_is_active( 'blogs' ) && bp_is_active( 'activity' ) && bp_is_root_blog() ) {
|
91 |
-
$callbacks[] = 'bp_blogs_register_recent_posts_widget';
|
92 |
}
|
93 |
|
94 |
-
foreach ( $callbacks as $callback ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
remove_action( 'widgets_init', $callback );
|
96 |
}
|
97 |
}
|
69 |
}
|
70 |
|
71 |
$callbacks = array(
|
72 |
+
'BP_Core_Login_Widget' => 'bp_core_register_login_widget',
|
73 |
+
'BP_Core_Members_Widget' => 'bp_members_register_members_widget',
|
74 |
+
'BP_Core_Whos_Online_Widget' => 'bp_members_register_whos_online_widget',
|
75 |
+
'BP_Core_Recently_Active_Widget' => 'bp_members_register_recently_active_widget',
|
76 |
);
|
77 |
|
78 |
if ( bp_is_active( 'friends' ) ) {
|
79 |
+
$callbacks['BP_Core_Friends_Widget'] = 'bp_friends_register_friends_widget';
|
80 |
}
|
81 |
|
82 |
if ( bp_is_active( 'groups' ) ) {
|
83 |
+
$callbacks['BP_Groups_Widget'] = 'bp_groups_register_groups_widget';
|
84 |
}
|
85 |
|
86 |
if ( bp_is_active( 'messages' ) ) {
|
87 |
+
$callbacks['BP_Messages_Sitewide_Notices_Widget'] = 'bp_messages_register_sitewide_notices_widget';
|
88 |
}
|
89 |
|
90 |
if ( bp_is_active( 'blogs' ) && bp_is_active( 'activity' ) && bp_is_root_blog() ) {
|
91 |
+
$callbacks['BP_Blogs_Recent_Posts_Widget'] = 'bp_blogs_register_recent_posts_widget';
|
92 |
}
|
93 |
|
94 |
+
foreach ( $callbacks as $widget_id => $callback ) {
|
95 |
+
$widget_base = strtolower( $widget_id );
|
96 |
+
|
97 |
+
// If there's an active widget, we need to carry on loading it.
|
98 |
+
if ( is_active_widget( false, false, $widget_base ) ) {
|
99 |
+
continue;
|
100 |
+
}
|
101 |
+
|
102 |
remove_action( 'widgets_init', $callback );
|
103 |
}
|
104 |
}
|
bp-core/classes/class-bp-optouts-list-table.php
CHANGED
@@ -86,6 +86,17 @@ class BP_Optouts_List_Table extends WP_Users_List_Table {
|
|
86 |
);
|
87 |
}
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
/**
|
90 |
* Get the list of views available on this table.
|
91 |
*
|
86 |
);
|
87 |
}
|
88 |
|
89 |
+
/**
|
90 |
+
* Gets the name of the default primary column.
|
91 |
+
*
|
92 |
+
* @since 10.1.0
|
93 |
+
*
|
94 |
+
* @return string Name of the default primary column, in this case, 'email_address'.
|
95 |
+
*/
|
96 |
+
protected function get_default_primary_column_name() {
|
97 |
+
return 'email_address';
|
98 |
+
}
|
99 |
+
|
100 |
/**
|
101 |
* Get the list of views available on this table.
|
102 |
*
|
bp-loader.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
|
16 |
* Author: The BuddyPress Community
|
17 |
* Author URI: https://buddypress.org/
|
18 |
-
* Version: 10.
|
19 |
* Text Domain: buddypress
|
20 |
* Domain Path: /bp-languages/
|
21 |
* License: GPLv2 or later (license.txt)
|
15 |
* Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
|
16 |
* Author: The BuddyPress Community
|
17 |
* Author URI: https://buddypress.org/
|
18 |
+
* Version: 10.1.0
|
19 |
* Text Domain: buddypress
|
20 |
* Domain Path: /bp-languages/
|
21 |
* License: GPLv2 or later (license.txt)
|
bp-members/bp-members-admin.php
CHANGED
@@ -124,7 +124,7 @@ add_filter( 'term_updated_messages', 'bp_members_type_admin_updated_messages' );
|
|
124 |
*/
|
125 |
function bp_members_admin_format_xprofile_field_for_display( $value ) {
|
126 |
if ( is_array( $value ) ) {
|
127 |
-
$value = array_map( '
|
128 |
$value = implode( ', ', $value );
|
129 |
} else {
|
130 |
$value = stripslashes( $value );
|
124 |
*/
|
125 |
function bp_members_admin_format_xprofile_field_for_display( $value ) {
|
126 |
if ( is_array( $value ) ) {
|
127 |
+
$value = array_map( 'bp_members_admin_format_xprofile_field_for_display', $value );
|
128 |
$value = implode( ', ', $value );
|
129 |
} else {
|
130 |
$value = stripslashes( $value );
|
bp-members/bp-members-functions.php
CHANGED
@@ -3165,7 +3165,7 @@ function bp_remove_member_type( $user_id, $member_type ) {
|
|
3165 |
|
3166 |
// No need to continue if the member doesn't have the type.
|
3167 |
$existing_types = bp_get_member_type( $user_id, false );
|
3168 |
-
if ( ! in_array( $member_type, $existing_types, true ) ) {
|
3169 |
return false;
|
3170 |
}
|
3171 |
|
3165 |
|
3166 |
// No need to continue if the member doesn't have the type.
|
3167 |
$existing_types = bp_get_member_type( $user_id, false );
|
3168 |
+
if ( ! is_array( $existing_types ) || ! in_array( $member_type, $existing_types, true ) ) {
|
3169 |
return false;
|
3170 |
}
|
3171 |
|
bp-members/classes/class-bp-members-invitations-list-table.php
CHANGED
@@ -102,6 +102,17 @@ class BP_Members_Invitations_List_Table extends WP_Users_List_Table {
|
|
102 |
) );
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
/**
|
106 |
* Get the list of views available on this table (e.g. "all", "public").
|
107 |
*
|
102 |
) );
|
103 |
}
|
104 |
|
105 |
+
/**
|
106 |
+
* Gets the name of the default primary column.
|
107 |
+
*
|
108 |
+
* @since 10.1.0
|
109 |
+
*
|
110 |
+
* @return string Name of the default primary column, in this case, 'invitee_email'.
|
111 |
+
*/
|
112 |
+
protected function get_default_primary_column_name() {
|
113 |
+
return 'invitee_email';
|
114 |
+
}
|
115 |
+
|
116 |
/**
|
117 |
* Get the list of views available on this table (e.g. "all", "public").
|
118 |
*
|
bp-members/screens/change-avatar.php
CHANGED
@@ -62,7 +62,7 @@ function bp_members_screen_change_avatar() {
|
|
62 |
);
|
63 |
|
64 |
// Handle crop.
|
65 |
-
$cropped_avatar = bp_core_avatar_handle_crop( $
|
66 |
|
67 |
if ( ! $cropped_avatar ) {
|
68 |
bp_core_add_message( __( 'There was a problem cropping your profile photo.', 'buddypress' ), 'error' );
|
62 |
);
|
63 |
|
64 |
// Handle crop.
|
65 |
+
$cropped_avatar = bp_core_avatar_handle_crop( $args, 'array' );
|
66 |
|
67 |
if ( ! $cropped_avatar ) {
|
68 |
bp_core_add_message( __( 'There was a problem cropping your profile photo.', 'buddypress' ), 'error' );
|
bp-members/screens/register.php
CHANGED
@@ -98,7 +98,7 @@ function bp_core_screen_signup() {
|
|
98 |
if ( $required_password_strength && ! is_null( $current_password_strength ) && $required_password_strength > $current_password_strength ) {
|
99 |
$account_password = new WP_Error(
|
100 |
'not_strong_enough_password',
|
101 |
-
__( 'Your password is not strong
|
102 |
);
|
103 |
} else {
|
104 |
$signup_pass = '';
|
98 |
if ( $required_password_strength && ! is_null( $current_password_strength ) && $required_password_strength > $current_password_strength ) {
|
99 |
$account_password = new WP_Error(
|
100 |
'not_strong_enough_password',
|
101 |
+
__( 'Your password is not strong enough to be allowed on this site. Please use a stronger password.', 'buddypress' )
|
102 |
);
|
103 |
} else {
|
104 |
$signup_pass = '';
|
bp-notifications/bp-notifications-cache.php
CHANGED
@@ -101,6 +101,23 @@ function bp_notifications_clear_all_for_user_cache_before_update( $update_args,
|
|
101 |
} elseif ( ! empty( $where_args['id'] ) ) {
|
102 |
$n = bp_notifications_get_notification( $where_args['id'] );
|
103 |
bp_notifications_clear_all_for_user_cache( $n->user_id );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
}
|
106 |
add_action( 'bp_notification_before_update', 'bp_notifications_clear_all_for_user_cache_before_update', 10, 2 );
|
101 |
} elseif ( ! empty( $where_args['id'] ) ) {
|
102 |
$n = bp_notifications_get_notification( $where_args['id'] );
|
103 |
bp_notifications_clear_all_for_user_cache( $n->user_id );
|
104 |
+
|
105 |
+
// Get the list of user IDs from notification IDs.
|
106 |
+
} elseif ( isset( $where_args['ids'] ) && $where_args['ids'] ) {
|
107 |
+
$ids = (array) $where_args['ids'];
|
108 |
+
|
109 |
+
$ns = BP_Notifications_Notification::get(
|
110 |
+
array(
|
111 |
+
'id' => $ids,
|
112 |
+
)
|
113 |
+
);
|
114 |
+
|
115 |
+
$user_ids = wp_list_pluck( $ns, 'user_id' );
|
116 |
+
$user_ids = array_unique( $user_ids );
|
117 |
+
|
118 |
+
foreach ( $user_ids as $user_id ) {
|
119 |
+
bp_notifications_clear_all_for_user_cache( $user_id );
|
120 |
+
}
|
121 |
}
|
122 |
}
|
123 |
add_action( 'bp_notification_before_update', 'bp_notifications_clear_all_for_user_cache_before_update', 10, 2 );
|
bp-notifications/classes/class-bp-notifications-notification.php
CHANGED
@@ -933,25 +933,32 @@ class BP_Notifications_Notification {
|
|
933 |
$_items = implode( ',', wp_parse_id_list( $items ) );
|
934 |
$conditions[] = "{$field} IN ({$_items})";
|
935 |
|
936 |
-
foreach ( $update_args['data'] as $
|
937 |
-
$index = array_search( $
|
938 |
$format = $update_args['format'][ $index ];
|
939 |
|
940 |
-
$fields[] = "{$
|
941 |
$values[] = $value;
|
942 |
}
|
943 |
|
944 |
-
foreach ( $where_args['data'] as $
|
945 |
-
$index = array_search( $
|
946 |
$format = $where_args['format'][ $index ];
|
947 |
|
948 |
-
$conditions[] = "{$
|
949 |
$values[] = $value;
|
950 |
}
|
951 |
|
952 |
$fields = implode( ', ', $fields );
|
953 |
$conditions = implode( ' AND ', $conditions );
|
954 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
955 |
/** This action is documented in bp-notifications/classes/class-bp-notifications-notification.php */
|
956 |
do_action( 'bp_notification_before_update', $update_args, $where_args );
|
957 |
|
@@ -1021,16 +1028,20 @@ class BP_Notifications_Notification {
|
|
1021 |
$_items = implode( ',', wp_parse_id_list( $items ) );
|
1022 |
$conditions[] = "{$field} IN ({$_items})";
|
1023 |
|
1024 |
-
foreach ( $where['data'] as $
|
1025 |
-
$index = array_search( $
|
1026 |
$format = $where['format'][ $index ];
|
1027 |
|
1028 |
-
$conditions[] = "{$
|
1029 |
$values[] = $value;
|
1030 |
}
|
1031 |
|
1032 |
$conditions = implode( ' AND ', $conditions );
|
1033 |
|
|
|
|
|
|
|
|
|
1034 |
/** This action is documented in bp-notifications/classes/class-bp-notifications-notification.php */
|
1035 |
do_action( 'bp_notification_before_delete', $args );
|
1036 |
|
933 |
$_items = implode( ',', wp_parse_id_list( $items ) );
|
934 |
$conditions[] = "{$field} IN ({$_items})";
|
935 |
|
936 |
+
foreach ( $update_args['data'] as $update_field => $value ) {
|
937 |
+
$index = array_search( $update_field, array_keys( $update_args['data'] ) );
|
938 |
$format = $update_args['format'][ $index ];
|
939 |
|
940 |
+
$fields[] = "{$update_field} = {$format}";
|
941 |
$values[] = $value;
|
942 |
}
|
943 |
|
944 |
+
foreach ( $where_args['data'] as $where_field => $value ) {
|
945 |
+
$index = array_search( $where_field, array_keys( $where_args['data'] ) );
|
946 |
$format = $where_args['format'][ $index ];
|
947 |
|
948 |
+
$conditions[] = "{$where_field} = {$format}";
|
949 |
$values[] = $value;
|
950 |
}
|
951 |
|
952 |
$fields = implode( ', ', $fields );
|
953 |
$conditions = implode( ' AND ', $conditions );
|
954 |
|
955 |
+
if ( 'item_id' === $field && isset( $where_args['data']['user_id'] ) ) {
|
956 |
+
$where_args['item_ids'] = $items;
|
957 |
+
$where_args['user_id'] = $where_args['data']['user_id'];
|
958 |
+
} elseif ( 'id' === $field ) {
|
959 |
+
$where_args['ids'] = $items;
|
960 |
+
}
|
961 |
+
|
962 |
/** This action is documented in bp-notifications/classes/class-bp-notifications-notification.php */
|
963 |
do_action( 'bp_notification_before_update', $update_args, $where_args );
|
964 |
|
1028 |
$_items = implode( ',', wp_parse_id_list( $items ) );
|
1029 |
$conditions[] = "{$field} IN ({$_items})";
|
1030 |
|
1031 |
+
foreach ( $where['data'] as $where_field => $value ) {
|
1032 |
+
$index = array_search( $where_field, array_keys( $where['data'] ) );
|
1033 |
$format = $where['format'][ $index ];
|
1034 |
|
1035 |
+
$conditions[] = "{$where_field} = {$format}";
|
1036 |
$values[] = $value;
|
1037 |
}
|
1038 |
|
1039 |
$conditions = implode( ' AND ', $conditions );
|
1040 |
|
1041 |
+
if ( 'id' === $field ) {
|
1042 |
+
$args['id'] = $items;
|
1043 |
+
}
|
1044 |
+
|
1045 |
/** This action is documented in bp-notifications/classes/class-bp-notifications-notification.php */
|
1046 |
do_action( 'bp_notification_before_delete', $args );
|
1047 |
|
bp-settings/actions/general.php
CHANGED
@@ -144,7 +144,7 @@ function bp_settings_action_general() {
|
|
144 |
if ( $required_password_strength && ! is_null( $current_password_strength ) && $required_password_strength > $current_password_strength ) {
|
145 |
$pass_error = new WP_Error(
|
146 |
'not_strong_enough_password',
|
147 |
-
__( 'Your password is not strong
|
148 |
);
|
149 |
} else {
|
150 |
$pass_error = bp_members_validate_user_password( $pass, $pass_confirm, $update_user );
|
144 |
if ( $required_password_strength && ! is_null( $current_password_strength ) && $required_password_strength > $current_password_strength ) {
|
145 |
$pass_error = new WP_Error(
|
146 |
'not_strong_enough_password',
|
147 |
+
__( 'Your password is not strong enough to be allowed on this site. Please use a stronger password.', 'buddypress' )
|
148 |
);
|
149 |
} else {
|
150 |
$pass_error = bp_members_validate_user_password( $pass, $pass_confirm, $update_user );
|
bp-templates/bp-nouveau/includes/activity/ajax.php
CHANGED
@@ -552,7 +552,7 @@ function bp_nouveau_ajax_post_update() {
|
|
552 |
if ( ! empty( $bp->groups->current_group->status ) ) {
|
553 |
$status = $bp->groups->current_group->status;
|
554 |
} else {
|
555 |
-
$group = groups_get_group( array( 'group_id' => $
|
556 |
$status = $group->status;
|
557 |
}
|
558 |
|
@@ -580,13 +580,13 @@ function bp_nouveau_ajax_post_update() {
|
|
580 |
bp_get_template_part( 'activity/entry' );
|
581 |
}
|
582 |
}
|
583 |
-
$
|
584 |
ob_end_clean();
|
585 |
|
586 |
wp_send_json_success( array(
|
587 |
'id' => $activity_id,
|
588 |
'message' => esc_html__( 'Update posted.', 'buddypress' ) . ' ' . sprintf( '<a href="%s" class="just-posted">%s</a>', esc_url( bp_activity_get_permalink( $activity_id ) ), esc_html__( 'View activity.', 'buddypress' ) ),
|
589 |
-
'activity' => $
|
590 |
|
591 |
/**
|
592 |
* Filters whether or not an AJAX post update is private.
|
552 |
if ( ! empty( $bp->groups->current_group->status ) ) {
|
553 |
$status = $bp->groups->current_group->status;
|
554 |
} else {
|
555 |
+
$group = groups_get_group( array( 'group_id' => $item_id ) );
|
556 |
$status = $group->status;
|
557 |
}
|
558 |
|
580 |
bp_get_template_part( 'activity/entry' );
|
581 |
}
|
582 |
}
|
583 |
+
$activity = ob_get_contents();
|
584 |
ob_end_clean();
|
585 |
|
586 |
wp_send_json_success( array(
|
587 |
'id' => $activity_id,
|
588 |
'message' => esc_html__( 'Update posted.', 'buddypress' ) . ' ' . sprintf( '<a href="%s" class="just-posted">%s</a>', esc_url( bp_activity_get_permalink( $activity_id ) ), esc_html__( 'View activity.', 'buddypress' ) ),
|
589 |
+
'activity' => $activity,
|
590 |
|
591 |
/**
|
592 |
* Filters whether or not an AJAX post update is private.
|
bp-xprofile/classes/class-bp-xprofile-field.php
CHANGED
@@ -570,12 +570,9 @@ class BP_XProfile_Field {
|
|
570 |
public function get_children( $for_editing = false ) {
|
571 |
global $wpdb;
|
572 |
|
573 |
-
// Sanitize 'order_by'.
|
574 |
-
$order_by = bp_esc_sql_order( $this->order_by );
|
575 |
-
|
576 |
// This is done here so we don't have problems with sql injection.
|
577 |
-
if ( empty( $for_editing ) ) {
|
578 |
-
$sort_sql =
|
579 |
} else {
|
580 |
$sort_sql = 'ORDER BY option_order ASC';
|
581 |
}
|
@@ -598,9 +595,9 @@ class BP_XProfile_Field {
|
|
598 |
* @since 1.2.5
|
599 |
* @since 3.0.0 Added the `$this` parameter.
|
600 |
*
|
601 |
-
* @param array $children
|
602 |
-
* @param bool $for_editing
|
603 |
-
* @param BP_XProfile_Field $
|
604 |
*/
|
605 |
return apply_filters( 'bp_xprofile_field_get_children', $children, $for_editing, $this );
|
606 |
}
|
570 |
public function get_children( $for_editing = false ) {
|
571 |
global $wpdb;
|
572 |
|
|
|
|
|
|
|
573 |
// This is done here so we don't have problems with sql injection.
|
574 |
+
if ( empty( $for_editing ) && in_array( $this->order_by, array( 'asc', 'desc' ), true ) ) {
|
575 |
+
$sort_sql = sprintf( 'ORDER BY name %s', bp_esc_sql_order( $this->order_by ) );
|
576 |
} else {
|
577 |
$sort_sql = 'ORDER BY option_order ASC';
|
578 |
}
|
595 |
* @since 1.2.5
|
596 |
* @since 3.0.0 Added the `$this` parameter.
|
597 |
*
|
598 |
+
* @param array $children Found children for a field.
|
599 |
+
* @param bool $for_editing Whether or not the field is for editing.
|
600 |
+
* @param BP_XProfile_Field $field_object BP_XProfile_Field Field object.
|
601 |
*/
|
602 |
return apply_filters( 'bp_xprofile_field_get_children', $children, $for_editing, $this );
|
603 |
}
|
buddypress.pot
CHANGED
@@ -9,7 +9,7 @@ msgstr ""
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: buddypress\n"
|
@@ -356,13 +356,13 @@ msgstr ""
|
|
356 |
#: bp-members/bp-members-template.php:3527
|
357 |
#: bp-members/classes/class-bp-members-admin.php:2436
|
358 |
#: bp-members/classes/class-bp-members-admin.php:3242
|
359 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
360 |
#: bp-templates/bp-legacy/buddypress/activity/entry.php:136
|
361 |
#: bp-templates/bp-nouveau/buddypress/members/single/settings/general.php:56
|
362 |
#: bp-templates/bp-nouveau/includes/activity/functions.php:170
|
363 |
#: bp-xprofile/bp-xprofile-admin.php:546
|
364 |
#: bp-xprofile/bp-xprofile-admin.php:815
|
365 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
366 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:954
|
367 |
msgid "Cancel"
|
368 |
msgstr ""
|
@@ -438,7 +438,7 @@ msgid "Edit"
|
|
438 |
msgstr ""
|
439 |
|
440 |
#: bp-activity/bp-activity-admin.php:895
|
441 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
442 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:848
|
443 |
msgid "Update"
|
444 |
msgstr ""
|
@@ -782,8 +782,8 @@ msgstr ""
|
|
782 |
#: bp-groups/bp-groups-notifications.php:1143
|
783 |
#: bp-members/bp-members-filters.php:346
|
784 |
#: bp-members/bp-members-notifications.php:244
|
785 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
786 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
787 |
#: bp-messages/bp-messages-notifications.php:319
|
788 |
#: bp-settings/bp-settings-functions.php:135
|
789 |
#: bp-templates/bp-legacy/buddypress/members/register.php:319
|
@@ -800,8 +800,8 @@ msgstr ""
|
|
800 |
#: bp-groups/bp-groups-notifications.php:1144
|
801 |
#: bp-members/bp-members-filters.php:346
|
802 |
#: bp-members/bp-members-notifications.php:245
|
803 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
804 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
805 |
#: bp-messages/bp-messages-notifications.php:320
|
806 |
#: bp-settings/bp-settings-functions.php:136
|
807 |
#: bp-templates/bp-legacy/buddypress/members/register.php:320
|
@@ -926,12 +926,12 @@ msgstr ""
|
|
926 |
|
927 |
#: bp-activity/bp-activity-template.php:2932
|
928 |
#: bp-core/bp-core-attachments.php:812
|
929 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
930 |
#: bp-groups/classes/class-bp-groups-component.php:801
|
931 |
#: bp-groups/classes/class-bp-groups-list-table.php:441
|
932 |
#: bp-groups/classes/class-bp-groups-list-table.php:608
|
933 |
#: bp-members/bp-members-template.php:3525
|
934 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
935 |
#: bp-members/classes/class-bp-members-list-table.php:182
|
936 |
#: bp-members/classes/class-bp-members-list-table.php:338
|
937 |
#: bp-members/classes/class-bp-members-ms-list-table.php:174
|
@@ -946,7 +946,7 @@ msgstr ""
|
|
946 |
#: bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/recycle.php:30
|
947 |
#: bp-xprofile/bp-xprofile-cssjs.php:63
|
948 |
#: bp-xprofile/classes/class-bp-xprofile-field-type.php:431
|
949 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
950 |
msgid "Delete"
|
951 |
msgstr ""
|
952 |
|
@@ -2234,7 +2234,7 @@ msgid "Logged-Out"
|
|
2234 |
msgstr ""
|
2235 |
|
2236 |
#: bp-core/admin/bp-core-admin-functions.php:1030
|
2237 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
2238 |
msgid "All"
|
2239 |
msgstr ""
|
2240 |
|
@@ -2322,7 +2322,7 @@ msgstr ""
|
|
2322 |
|
2323 |
#. translators: accessibility text
|
2324 |
#: bp-core/admin/bp-core-admin-optouts.php:94
|
2325 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
2326 |
msgid "Filter opt-outs list"
|
2327 |
msgstr ""
|
2328 |
|
@@ -5173,44 +5173,44 @@ msgstr ""
|
|
5173 |
msgid "The email recipient has opted out from receiving communication from this site."
|
5174 |
msgstr ""
|
5175 |
|
5176 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5177 |
msgid "Email Address Hash"
|
5178 |
msgstr ""
|
5179 |
|
5180 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5181 |
msgid "Email Sender"
|
5182 |
msgstr ""
|
5183 |
|
5184 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5185 |
msgid "Email Sender Registered"
|
5186 |
msgstr ""
|
5187 |
|
5188 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5189 |
msgid "Email Type"
|
5190 |
msgstr ""
|
5191 |
|
5192 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5193 |
msgid "Email Description"
|
5194 |
msgstr ""
|
5195 |
|
5196 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5197 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
5198 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:27
|
5199 |
#: bp-templates/bp-nouveau/buddypress/members/single/invitations/invitations-loop.php:25
|
5200 |
msgid "Date Modified"
|
5201 |
msgstr ""
|
5202 |
|
5203 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5204 |
msgctxt "Optout database record action"
|
5205 |
msgid "Delete"
|
5206 |
msgstr ""
|
5207 |
|
5208 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5209 |
msgid "No opt-outs found."
|
5210 |
msgstr ""
|
5211 |
|
5212 |
#. translators: %d: accessibility text.
|
5213 |
-
#: bp-core/classes/class-bp-optouts-list-table.php:
|
5214 |
msgid "Select opt-out request: %d"
|
5215 |
msgstr ""
|
5216 |
|
@@ -8368,7 +8368,7 @@ msgstr ""
|
|
8368 |
#: bp-members/bp-members-admin.php:60
|
8369 |
#: bp-templates/bp-nouveau/buddypress/members/single/cover-image-header.php:53
|
8370 |
#: bp-templates/bp-nouveau/buddypress/members/single/member-header.php:39
|
8371 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
8372 |
msgid "Member Types"
|
8373 |
msgstr ""
|
8374 |
|
@@ -9002,7 +9002,7 @@ msgstr[0] ""
|
|
9002 |
msgstr[1] ""
|
9003 |
|
9004 |
#: bp-members/bp-members-template.php:3437
|
9005 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9006 |
msgid "Resend"
|
9007 |
msgstr ""
|
9008 |
|
@@ -9528,7 +9528,7 @@ msgstr ""
|
|
9528 |
|
9529 |
#. translators: accessibility text
|
9530 |
#: bp-members/classes/class-bp-members-admin.php:2764
|
9531 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9532 |
msgid "Filter invitations list"
|
9533 |
msgstr ""
|
9534 |
|
@@ -9685,23 +9685,23 @@ msgctxt "page label"
|
|
9685 |
msgid "BP Activation Page"
|
9686 |
msgstr ""
|
9687 |
|
9688 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9689 |
msgid "Pending"
|
9690 |
msgstr ""
|
9691 |
|
9692 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9693 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9694 |
#: bp-templates/bp-legacy/buddypress-functions.php:303
|
9695 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:26
|
9696 |
#: bp-templates/bp-nouveau/buddypress/members/single/invitations/invitations-loop.php:24
|
9697 |
msgid "Accepted"
|
9698 |
msgstr ""
|
9699 |
|
9700 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9701 |
msgid "Draft (Unsent)"
|
9702 |
msgstr ""
|
9703 |
|
9704 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9705 |
#: bp-messages/classes/class-bp-messages-component.php:262
|
9706 |
#: bp-messages/classes/class-bp-messages-component.php:368
|
9707 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:25
|
@@ -9709,39 +9709,39 @@ msgstr ""
|
|
9709 |
msgid "Sent"
|
9710 |
msgstr ""
|
9711 |
|
9712 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9713 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:23
|
9714 |
#: bp-templates/bp-nouveau/buddypress/members/single/invitations/invitations-loop.php:21
|
9715 |
msgid "Invitee"
|
9716 |
msgstr ""
|
9717 |
|
9718 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9719 |
msgid "Inviter"
|
9720 |
msgstr ""
|
9721 |
|
9722 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9723 |
msgid "Inviter Registered"
|
9724 |
msgstr ""
|
9725 |
|
9726 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9727 |
msgid "Email Sent"
|
9728 |
msgstr ""
|
9729 |
|
9730 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9731 |
msgctxt "Pending invitation action"
|
9732 |
msgid "Resend Email"
|
9733 |
msgstr ""
|
9734 |
|
9735 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9736 |
msgctxt "Pending invitation action"
|
9737 |
msgid "Delete"
|
9738 |
msgstr ""
|
9739 |
|
9740 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9741 |
msgid "No invitations found."
|
9742 |
msgstr ""
|
9743 |
|
9744 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9745 |
#: bp-members/classes/class-bp-members-list-table.php:211
|
9746 |
#: bp-members/classes/class-bp-members-list-table.php:213
|
9747 |
#: bp-members/classes/class-bp-members-ms-list-table.php:201
|
@@ -9751,16 +9751,16 @@ msgid "Edit settings"
|
|
9751 |
msgstr ""
|
9752 |
|
9753 |
#. translators: %s: url to site settings
|
9754 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9755 |
msgid "Invitations are not allowed. %s"
|
9756 |
msgstr ""
|
9757 |
|
9758 |
#. translators: accessibility text
|
9759 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9760 |
msgid "Select invitation: %s"
|
9761 |
msgstr ""
|
9762 |
|
9763 |
-
#: bp-members/classes/class-bp-members-invitations-list-table.php:
|
9764 |
#: bp-templates/bp-nouveau/includes/functions.php:1375
|
9765 |
msgid "Send"
|
9766 |
msgstr ""
|
@@ -10168,7 +10168,7 @@ msgstr ""
|
|
10168 |
|
10169 |
#: bp-members/screens/register.php:101
|
10170 |
#: bp-settings/actions/general.php:147
|
10171 |
-
msgid "Your password is not strong
|
10172 |
msgstr ""
|
10173 |
|
10174 |
#: bp-members/screens/register.php:125
|
@@ -11737,7 +11737,7 @@ msgstr ""
|
|
11737 |
#: bp-templates/bp-legacy/buddypress/members/single/settings/capabilities.php:30
|
11738 |
#: bp-templates/bp-nouveau/includes/functions.php:1313
|
11739 |
#: bp-templates/bp-nouveau/includes/functions.php:1365
|
11740 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
11741 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:839
|
11742 |
msgid "Save"
|
11743 |
msgstr ""
|
@@ -12864,7 +12864,7 @@ msgstr ""
|
|
12864 |
|
12865 |
#: bp-templates/bp-legacy/buddypress/members/single/settings/profile.php:34
|
12866 |
#: bp-templates/bp-nouveau/buddypress/members/single/settings/profile.php:34
|
12867 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
12868 |
msgid "Visibility"
|
12869 |
msgstr ""
|
12870 |
|
@@ -14489,7 +14489,7 @@ msgid "Signup Fields"
|
|
14489 |
msgstr ""
|
14490 |
|
14491 |
#: bp-xprofile/bp-xprofile-admin.php:232
|
14492 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
14493 |
msgid "Add New Field"
|
14494 |
msgstr ""
|
14495 |
|
@@ -15409,131 +15409,131 @@ msgstr ""
|
|
15409 |
msgid "Add Another Option"
|
15410 |
msgstr ""
|
15411 |
|
15412 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15413 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15414 |
msgid "Users with no member type"
|
15415 |
msgstr ""
|
15416 |
|
15417 |
#. translators: %s: comma separated list of member types
|
15418 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15419 |
msgid "(Member types: %s)"
|
15420 |
msgstr ""
|
15421 |
|
15422 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15423 |
msgid "(Unavailable to all members)"
|
15424 |
msgstr ""
|
15425 |
|
15426 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15427 |
msgid "Profile fields must have a name."
|
15428 |
msgstr ""
|
15429 |
|
15430 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15431 |
msgid "Profile field requirement is missing."
|
15432 |
msgstr ""
|
15433 |
|
15434 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15435 |
msgid "Profile field type is missing."
|
15436 |
msgstr ""
|
15437 |
|
15438 |
#. translators: %s: field type name
|
15439 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15440 |
msgid "The profile field type %s is not registered."
|
15441 |
msgstr ""
|
15442 |
|
15443 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15444 |
msgid "These field options are invalid."
|
15445 |
msgstr ""
|
15446 |
|
15447 |
#. translators: %s: field type name
|
15448 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15449 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15450 |
msgid "%s require at least one option."
|
15451 |
msgstr ""
|
15452 |
|
15453 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15454 |
msgid "Edit Field"
|
15455 |
msgstr ""
|
15456 |
|
15457 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15458 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:926
|
15459 |
msgid "Submit"
|
15460 |
msgstr ""
|
15461 |
|
15462 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15463 |
msgctxt "XProfile admin edit field"
|
15464 |
msgid "Name (required)"
|
15465 |
msgstr ""
|
15466 |
|
15467 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15468 |
msgctxt "XProfile admin edit field"
|
15469 |
msgid "Description"
|
15470 |
msgstr ""
|
15471 |
|
15472 |
#. translators: accessibility text
|
15473 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15474 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:893
|
15475 |
msgid "Add description"
|
15476 |
msgstr ""
|
15477 |
|
15478 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15479 |
msgid "This field should be available to:"
|
15480 |
msgstr ""
|
15481 |
|
15482 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15483 |
msgid "Unavailable to all members."
|
15484 |
msgstr ""
|
15485 |
|
15486 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15487 |
msgid "Allow members to override"
|
15488 |
msgstr ""
|
15489 |
|
15490 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15491 |
msgid "Enforce field visibility"
|
15492 |
msgstr ""
|
15493 |
|
15494 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15495 |
msgid "Requirement"
|
15496 |
msgstr ""
|
15497 |
|
15498 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15499 |
msgid "Not Required"
|
15500 |
msgstr ""
|
15501 |
|
15502 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15503 |
msgid "Required"
|
15504 |
msgstr ""
|
15505 |
|
15506 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15507 |
msgid "Autolink"
|
15508 |
msgstr ""
|
15509 |
|
15510 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15511 |
msgid "On user profiles, link this field to a search of the Members directory, using the field value as a search term."
|
15512 |
msgstr ""
|
15513 |
|
15514 |
#. translators: accessibility text
|
15515 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15516 |
msgid "Autolink status for this field"
|
15517 |
msgstr ""
|
15518 |
|
15519 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15520 |
msgid "Enabled"
|
15521 |
msgstr ""
|
15522 |
|
15523 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15524 |
msgid "Disabled"
|
15525 |
msgstr ""
|
15526 |
|
15527 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15528 |
#: bp-activity/js/blocks/latest-activities.js:70
|
15529 |
msgid "Type"
|
15530 |
msgstr ""
|
15531 |
|
15532 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15533 |
msgid "Signups"
|
15534 |
msgstr ""
|
15535 |
|
15536 |
-
#: bp-xprofile/classes/class-bp-xprofile-field.php:
|
15537 |
msgid "Use this field in the site registration form."
|
15538 |
msgstr ""
|
15539 |
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-02-22T20:37:37+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: buddypress\n"
|
356 |
#: bp-members/bp-members-template.php:3527
|
357 |
#: bp-members/classes/class-bp-members-admin.php:2436
|
358 |
#: bp-members/classes/class-bp-members-admin.php:3242
|
359 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:387
|
360 |
#: bp-templates/bp-legacy/buddypress/activity/entry.php:136
|
361 |
#: bp-templates/bp-nouveau/buddypress/members/single/settings/general.php:56
|
362 |
#: bp-templates/bp-nouveau/includes/activity/functions.php:170
|
363 |
#: bp-xprofile/bp-xprofile-admin.php:546
|
364 |
#: bp-xprofile/bp-xprofile-admin.php:815
|
365 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1475
|
366 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:954
|
367 |
msgid "Cancel"
|
368 |
msgstr ""
|
438 |
msgstr ""
|
439 |
|
440 |
#: bp-activity/bp-activity-admin.php:895
|
441 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1258
|
442 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:848
|
443 |
msgid "Update"
|
444 |
msgstr ""
|
782 |
#: bp-groups/bp-groups-notifications.php:1143
|
783 |
#: bp-members/bp-members-filters.php:346
|
784 |
#: bp-members/bp-members-notifications.php:244
|
785 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:468
|
786 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:483
|
787 |
#: bp-messages/bp-messages-notifications.php:319
|
788 |
#: bp-settings/bp-settings-functions.php:135
|
789 |
#: bp-templates/bp-legacy/buddypress/members/register.php:319
|
800 |
#: bp-groups/bp-groups-notifications.php:1144
|
801 |
#: bp-members/bp-members-filters.php:346
|
802 |
#: bp-members/bp-members-notifications.php:245
|
803 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:470
|
804 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:485
|
805 |
#: bp-messages/bp-messages-notifications.php:320
|
806 |
#: bp-settings/bp-settings-functions.php:136
|
807 |
#: bp-templates/bp-legacy/buddypress/members/register.php:320
|
926 |
|
927 |
#: bp-activity/bp-activity-template.php:2932
|
928 |
#: bp-core/bp-core-attachments.php:812
|
929 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:299
|
930 |
#: bp-groups/classes/class-bp-groups-component.php:801
|
931 |
#: bp-groups/classes/class-bp-groups-list-table.php:441
|
932 |
#: bp-groups/classes/class-bp-groups-list-table.php:608
|
933 |
#: bp-members/bp-members-template.php:3525
|
934 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:385
|
935 |
#: bp-members/classes/class-bp-members-list-table.php:182
|
936 |
#: bp-members/classes/class-bp-members-list-table.php:338
|
937 |
#: bp-members/classes/class-bp-members-ms-list-table.php:174
|
946 |
#: bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/recycle.php:30
|
947 |
#: bp-xprofile/bp-xprofile-cssjs.php:63
|
948 |
#: bp-xprofile/classes/class-bp-xprofile-field-type.php:431
|
949 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1472
|
950 |
msgid "Delete"
|
951 |
msgstr ""
|
952 |
|
2234 |
msgstr ""
|
2235 |
|
2236 |
#: bp-core/admin/bp-core-admin-functions.php:1030
|
2237 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:145
|
2238 |
msgid "All"
|
2239 |
msgstr ""
|
2240 |
|
2322 |
|
2323 |
#. translators: accessibility text
|
2324 |
#: bp-core/admin/bp-core-admin-optouts.php:94
|
2325 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:123
|
2326 |
msgid "Filter opt-outs list"
|
2327 |
msgstr ""
|
2328 |
|
5173 |
msgid "The email recipient has opted out from receiving communication from this site."
|
5174 |
msgstr ""
|
5175 |
|
5176 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:174
|
5177 |
msgid "Email Address Hash"
|
5178 |
msgstr ""
|
5179 |
|
5180 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:175
|
5181 |
msgid "Email Sender"
|
5182 |
msgstr ""
|
5183 |
|
5184 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:176
|
5185 |
msgid "Email Sender Registered"
|
5186 |
msgstr ""
|
5187 |
|
5188 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:177
|
5189 |
msgid "Email Type"
|
5190 |
msgstr ""
|
5191 |
|
5192 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:178
|
5193 |
msgid "Email Description"
|
5194 |
msgstr ""
|
5195 |
|
5196 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:179
|
5197 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:221
|
5198 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:27
|
5199 |
#: bp-templates/bp-nouveau/buddypress/members/single/invitations/invitations-loop.php:25
|
5200 |
msgid "Date Modified"
|
5201 |
msgstr ""
|
5202 |
|
5203 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:191
|
5204 |
msgctxt "Optout database record action"
|
5205 |
msgid "Delete"
|
5206 |
msgstr ""
|
5207 |
|
5208 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:205
|
5209 |
msgid "No opt-outs found."
|
5210 |
msgstr ""
|
5211 |
|
5212 |
#. translators: %d: accessibility text.
|
5213 |
+
#: bp-core/classes/class-bp-optouts-list-table.php:265
|
5214 |
msgid "Select opt-out request: %d"
|
5215 |
msgstr ""
|
5216 |
|
8368 |
#: bp-members/bp-members-admin.php:60
|
8369 |
#: bp-templates/bp-nouveau/buddypress/members/single/cover-image-header.php:53
|
8370 |
#: bp-templates/bp-nouveau/buddypress/members/single/member-header.php:39
|
8371 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1551
|
8372 |
msgid "Member Types"
|
8373 |
msgstr ""
|
8374 |
|
9002 |
msgstr[1] ""
|
9003 |
|
9004 |
#: bp-members/bp-members-template.php:3437
|
9005 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:367
|
9006 |
msgid "Resend"
|
9007 |
msgstr ""
|
9008 |
|
9528 |
|
9529 |
#. translators: accessibility text
|
9530 |
#: bp-members/classes/class-bp-members-admin.php:2764
|
9531 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:139
|
9532 |
msgid "Filter invitations list"
|
9533 |
msgstr ""
|
9534 |
|
9685 |
msgid "BP Activation Page"
|
9686 |
msgstr ""
|
9687 |
|
9688 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:150
|
9689 |
msgid "Pending"
|
9690 |
msgstr ""
|
9691 |
|
9692 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:155
|
9693 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:223
|
9694 |
#: bp-templates/bp-legacy/buddypress-functions.php:303
|
9695 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:26
|
9696 |
#: bp-templates/bp-nouveau/buddypress/members/single/invitations/invitations-loop.php:24
|
9697 |
msgid "Accepted"
|
9698 |
msgstr ""
|
9699 |
|
9700 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:160
|
9701 |
msgid "Draft (Unsent)"
|
9702 |
msgstr ""
|
9703 |
|
9704 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:165
|
9705 |
#: bp-messages/classes/class-bp-messages-component.php:262
|
9706 |
#: bp-messages/classes/class-bp-messages-component.php:368
|
9707 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:25
|
9709 |
msgid "Sent"
|
9710 |
msgstr ""
|
9711 |
|
9712 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:218
|
9713 |
#: bp-templates/bp-legacy/buddypress/members/single/invitations/invitations-loop.php:23
|
9714 |
#: bp-templates/bp-nouveau/buddypress/members/single/invitations/invitations-loop.php:21
|
9715 |
msgid "Invitee"
|
9716 |
msgstr ""
|
9717 |
|
9718 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:219
|
9719 |
msgid "Inviter"
|
9720 |
msgstr ""
|
9721 |
|
9722 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:220
|
9723 |
msgid "Inviter Registered"
|
9724 |
msgstr ""
|
9725 |
|
9726 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:222
|
9727 |
msgid "Email Sent"
|
9728 |
msgstr ""
|
9729 |
|
9730 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:235
|
9731 |
msgctxt "Pending invitation action"
|
9732 |
msgid "Resend Email"
|
9733 |
msgstr ""
|
9734 |
|
9735 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:239
|
9736 |
msgctxt "Pending invitation action"
|
9737 |
msgid "Delete"
|
9738 |
msgstr ""
|
9739 |
|
9740 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:255
|
9741 |
msgid "No invitations found."
|
9742 |
msgstr ""
|
9743 |
|
9744 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:260
|
9745 |
#: bp-members/classes/class-bp-members-list-table.php:211
|
9746 |
#: bp-members/classes/class-bp-members-list-table.php:213
|
9747 |
#: bp-members/classes/class-bp-members-ms-list-table.php:201
|
9751 |
msgstr ""
|
9752 |
|
9753 |
#. translators: %s: url to site settings
|
9754 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:264
|
9755 |
msgid "Invitations are not allowed. %s"
|
9756 |
msgstr ""
|
9757 |
|
9758 |
#. translators: accessibility text
|
9759 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:328
|
9760 |
msgid "Select invitation: %s"
|
9761 |
msgstr ""
|
9762 |
|
9763 |
+
#: bp-members/classes/class-bp-members-invitations-list-table.php:365
|
9764 |
#: bp-templates/bp-nouveau/includes/functions.php:1375
|
9765 |
msgid "Send"
|
9766 |
msgstr ""
|
10168 |
|
10169 |
#: bp-members/screens/register.php:101
|
10170 |
#: bp-settings/actions/general.php:147
|
10171 |
+
msgid "Your password is not strong enough to be allowed on this site. Please use a stronger password."
|
10172 |
msgstr ""
|
10173 |
|
10174 |
#: bp-members/screens/register.php:125
|
11737 |
#: bp-templates/bp-legacy/buddypress/members/single/settings/capabilities.php:30
|
11738 |
#: bp-templates/bp-nouveau/includes/functions.php:1313
|
11739 |
#: bp-templates/bp-nouveau/includes/functions.php:1365
|
11740 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1236
|
11741 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:839
|
11742 |
msgid "Save"
|
11743 |
msgstr ""
|
12864 |
|
12865 |
#: bp-templates/bp-legacy/buddypress/members/single/settings/profile.php:34
|
12866 |
#: bp-templates/bp-nouveau/buddypress/members/single/settings/profile.php:34
|
12867 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1597
|
12868 |
msgid "Visibility"
|
12869 |
msgstr ""
|
12870 |
|
14489 |
msgstr ""
|
14490 |
|
14491 |
#: bp-xprofile/bp-xprofile-admin.php:232
|
14492 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1235
|
14493 |
msgid "Add New Field"
|
14494 |
msgstr ""
|
14495 |
|
15409 |
msgid "Add Another Option"
|
15410 |
msgstr ""
|
15411 |
|
15412 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:799
|
15413 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1568
|
15414 |
msgid "Users with no member type"
|
15415 |
msgstr ""
|
15416 |
|
15417 |
#. translators: %s: comma separated list of member types
|
15418 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:803
|
15419 |
msgid "(Member types: %s)"
|
15420 |
msgstr ""
|
15421 |
|
15422 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:805
|
15423 |
msgid "(Unavailable to all members)"
|
15424 |
msgstr ""
|
15425 |
|
15426 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1137
|
15427 |
msgid "Profile fields must have a name."
|
15428 |
msgstr ""
|
15429 |
|
15430 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1143
|
15431 |
msgid "Profile field requirement is missing."
|
15432 |
msgstr ""
|
15433 |
|
15434 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1149
|
15435 |
msgid "Profile field type is missing."
|
15436 |
msgstr ""
|
15437 |
|
15438 |
#. translators: %s: field type name
|
15439 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1156
|
15440 |
msgid "The profile field type %s is not registered."
|
15441 |
msgstr ""
|
15442 |
|
15443 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1171
|
15444 |
msgid "These field options are invalid."
|
15445 |
msgstr ""
|
15446 |
|
15447 |
#. translators: %s: field type name
|
15448 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1183
|
15449 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1190
|
15450 |
msgid "%s require at least one option."
|
15451 |
msgstr ""
|
15452 |
|
15453 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1257
|
15454 |
msgid "Edit Field"
|
15455 |
msgstr ""
|
15456 |
|
15457 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1444
|
15458 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:926
|
15459 |
msgid "Submit"
|
15460 |
msgstr ""
|
15461 |
|
15462 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1508
|
15463 |
msgctxt "XProfile admin edit field"
|
15464 |
msgid "Name (required)"
|
15465 |
msgstr ""
|
15466 |
|
15467 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1514
|
15468 |
msgctxt "XProfile admin edit field"
|
15469 |
msgid "Description"
|
15470 |
msgstr ""
|
15471 |
|
15472 |
#. translators: accessibility text
|
15473 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1518
|
15474 |
#: bp-xprofile/classes/class-bp-xprofile-group.php:893
|
15475 |
msgid "Add description"
|
15476 |
msgstr ""
|
15477 |
|
15478 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1553
|
15479 |
msgid "This field should be available to:"
|
15480 |
msgstr ""
|
15481 |
|
15482 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1573
|
15483 |
msgid "Unavailable to all members."
|
15484 |
msgstr ""
|
15485 |
|
15486 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1617
|
15487 |
msgid "Allow members to override"
|
15488 |
msgstr ""
|
15489 |
|
15490 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1621
|
15491 |
msgid "Enforce field visibility"
|
15492 |
msgstr ""
|
15493 |
|
15494 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1646
|
15495 |
msgid "Requirement"
|
15496 |
msgstr ""
|
15497 |
|
15498 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1649
|
15499 |
msgid "Not Required"
|
15500 |
msgstr ""
|
15501 |
|
15502 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1650
|
15503 |
msgid "Required"
|
15504 |
msgstr ""
|
15505 |
|
15506 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1673
|
15507 |
msgid "Autolink"
|
15508 |
msgstr ""
|
15509 |
|
15510 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1675
|
15511 |
msgid "On user profiles, link this field to a search of the Members directory, using the field value as a search term."
|
15512 |
msgstr ""
|
15513 |
|
15514 |
#. translators: accessibility text
|
15515 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1680
|
15516 |
msgid "Autolink status for this field"
|
15517 |
msgstr ""
|
15518 |
|
15519 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1683
|
15520 |
msgid "Enabled"
|
15521 |
msgstr ""
|
15522 |
|
15523 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1684
|
15524 |
msgid "Disabled"
|
15525 |
msgstr ""
|
15526 |
|
15527 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1709
|
15528 |
#: bp-activity/js/blocks/latest-activities.js:70
|
15529 |
msgid "Type"
|
15530 |
msgstr ""
|
15531 |
|
15532 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1761
|
15533 |
msgid "Signups"
|
15534 |
msgstr ""
|
15535 |
|
15536 |
+
#: bp-xprofile/classes/class-bp-xprofile-field.php:1767
|
15537 |
msgid "Use this field in the site registration form."
|
15538 |
msgstr ""
|
15539 |
|
class-buddypress.php
CHANGED
@@ -349,7 +349,7 @@ class BuddyPress {
|
|
349 |
|
350 |
/** Versions */
|
351 |
|
352 |
-
$this->version = '10.
|
353 |
$this->db_version = 13165;
|
354 |
|
355 |
/** Loading */
|
349 |
|
350 |
/** Versions */
|
351 |
|
352 |
+
$this->version = '10.1.0';
|
353 |
$this->db_version = 13165;
|
354 |
|
355 |
/** Loading */
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ License: GPLv2 or later
|
|
5 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
-
Tested up to: 5.
|
9 |
-
Stable tag: 10.
|
10 |
|
11 |
BuddyPress helps site builders & developers add community features to their websites, with user profiles, activity streams, and more!
|
12 |
|
@@ -125,6 +125,9 @@ Try <a href="https://wordpress.org/plugins/bbpress/">bbPress</a>. It integrates
|
|
125 |
|
126 |
== Upgrade Notice ==
|
127 |
|
|
|
|
|
|
|
128 |
= 10.0.0 =
|
129 |
See: https://codex.buddypress.org/releases/version-10-0-0/
|
130 |
|
@@ -187,6 +190,9 @@ See: https://codex.buddypress.org/releases/version-5-0-0/
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
190 |
= 10.0.0 =
|
191 |
See: https://codex.buddypress.org/releases/version-10-0-0/
|
192 |
|
5 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
+
Tested up to: 5.9
|
9 |
+
Stable tag: 10.1.0
|
10 |
|
11 |
BuddyPress helps site builders & developers add community features to their websites, with user profiles, activity streams, and more!
|
12 |
|
125 |
|
126 |
== Upgrade Notice ==
|
127 |
|
128 |
+
= 10.1.0 =
|
129 |
+
See: https://codex.buddypress.org/releases/version-10-1-0/
|
130 |
+
|
131 |
= 10.0.0 =
|
132 |
See: https://codex.buddypress.org/releases/version-10-0-0/
|
133 |
|
190 |
|
191 |
== Changelog ==
|
192 |
|
193 |
+
= 10.1.0 =
|
194 |
+
See: https://codex.buddypress.org/releases/version-10-1-0/
|
195 |
+
|
196 |
= 10.0.0 =
|
197 |
See: https://codex.buddypress.org/releases/version-10-0-0/
|
198 |
|