diff --git a/src/bp-activity/bp-activity-embeds.php b/src/bp-activity/bp-activity-embeds.php
index ae69a9622..9dfb92efc 100644
|
a
|
b
|
add_action( 'embed_head', 'bp_activity_embed_add_inline_styles', 20 ); |
| 88 | 88 | * |
| 89 | 89 | * @param int $activity_id The activity ID. |
| 90 | 90 | * @return bool |
| | 91 | * @global BP_Activity_Template $activities_template The main activity template loop class. |
| 91 | 92 | */ |
| 92 | 93 | function bp_activity_embed_has_activity( $activity_id = 0 ) { |
| 93 | 94 | global $activities_template; |
diff --git a/src/bp-activity/bp-activity-filters.php b/src/bp-activity/bp-activity-filters.php
index 3367e75f2..e039ba09d 100644
|
a
|
b
|
function bp_activity_make_nofollow_filter( $text ) { |
| 407 | 407 | * for all available parameters. |
| 408 | 408 | * } |
| 409 | 409 | * @return string $excerpt The truncated text. |
| | 410 | * |
| | 411 | * @global $activities_template. |
| 410 | 412 | */ |
| 411 | 413 | function bp_activity_truncate_entry( $text, $args = array() ) { |
| 412 | 414 | global $activities_template; |
diff --git a/src/bp-activity/bp-activity-template.php b/src/bp-activity/bp-activity-template.php
index 7391ea5f2..ca87ceffd 100644
|
a
|
b
|
function bp_activity_load_more_link() { |
| 409 | 409 | * @since 11.0.0 Adds the `offset_lower` query arg to avoid last displayed activity to be duplicated. |
| 410 | 410 | * |
| 411 | 411 | * @return string $link |
| | 412 | * |
| | 413 | * @global BP_Activity_Template $activities_template The main activity template loop class. |
| 412 | 414 | */ |
| 413 | 415 | function bp_get_activity_load_more_link() { |
| 414 | 416 | global $activities_template; |
| … |
… |
function bp_activity_thread_permalink() { |
| 2745 | 2747 | * |
| 2746 | 2748 | * |
| 2747 | 2749 | * @return string $link The activity thread permalink. |
| | 2750 | * |
| | 2751 | * @global BP_Activity_Template $activities_template The main activity template loop class. |
| 2748 | 2752 | */ |
| 2749 | 2753 | function bp_get_activity_thread_permalink() { |
| 2750 | 2754 | global $activities_template; |
| … |
… |
function bp_activity_comment_permalink() { |
| 2776 | 2780 | * @since 1.8.0 |
| 2777 | 2781 | * |
| 2778 | 2782 | * @return string $link The activity comment permalink. |
| | 2783 | * |
| | 2784 | * @global BP_Activity_Template $activities_template The main activity template loop class. |
| 2779 | 2785 | */ |
| 2780 | 2786 | function bp_get_activity_comment_permalink() { |
| 2781 | 2787 | global $activities_template; |
| … |
… |
function bp_activity_comments_user_avatars( $args = array() ) { |
| 3693 | 3699 | * @since 1.7.0 |
| 3694 | 3700 | * |
| 3695 | 3701 | * @return bool|array An array of IDs, or false if none are found. |
| | 3702 | * |
| | 3703 | * @global BP_Activity_Template $activities_template The main activity template loop class. |
| 3696 | 3704 | */ |
| 3697 | 3705 | function bp_activity_get_comments_user_ids() { |
| 3698 | 3706 | global $activities_template; |
diff --git a/src/bp-xprofile/bp-xprofile-admin.php b/src/bp-xprofile/bp-xprofile-admin.php
index 999f32b17..fcbecbb34 100644
|
a
|
b
|
function xprofile_admin_screen( $message = '', $type = 'error' ) { |
| 409 | 409 | * @since 1.0.0 |
| 410 | 410 | * |
| 411 | 411 | * @param int|null $group_id Group ID to manage. |
| | 412 | * |
| | 413 | * @global string $message The feedback message to show. |
| | 414 | * @global string $type The type of feedback message to show. |
| 412 | 415 | */ |
| 413 | 416 | function xprofile_admin_manage_group( $group_id = null ) { |
| 414 | 417 | global $message, $type; |
| … |
… |
function xprofile_admin_manage_group( $group_id = null ) { |
| 476 | 479 | * @since 1.0.0 |
| 477 | 480 | * |
| 478 | 481 | * @param int $group_id ID of the group to delete. |
| | 482 | * |
| | 483 | * @global string $message The feedback message to show. |
| | 484 | * @global string $type The type of feedback message to show. |
| 479 | 485 | */ |
| 480 | 486 | function xprofile_admin_delete_group( $group_id ) { |
| 481 | 487 | global $message, $type; |
| … |
… |
function xprofile_admin_delete_group_screen( $group_id ) { |
| 556 | 562 | * |
| 557 | 563 | * @param int $group_id ID of the group. |
| 558 | 564 | * @param int|null $field_id ID of the field being managed. |
| | 565 | * @global wpdb $wpdb WordPress database object. |
| | 566 | * @global string $message The feedback message to show. |
| | 567 | * @global $groups. |
| 559 | 568 | */ |
| 560 | 569 | function xprofile_admin_manage_field( $group_id, $field_id = null ) { |
| 561 | 570 | global $wpdb, $message, $groups; |
| … |
… |
add_action( 'wp_ajax_xprofile_reorder_groups', 'xprofile_ajax_reorder_field_grou |
| 1011 | 1020 | * @param object $admin_group Admin group object. |
| 1012 | 1021 | * @param string $class Classes to append to output. |
| 1013 | 1022 | * @param bool $is_signup Whether the admin field output is made inside the signup group. |
| | 1023 | * @global $field. |
| 1014 | 1024 | */ |
| 1015 | 1025 | function xprofile_admin_field( $admin_field, $admin_group, $class = '', $is_signup = false ) { |
| 1016 | 1026 | global $field; |
diff --git a/src/bp-xprofile/bp-xprofile-cache.php b/src/bp-xprofile/bp-xprofile-cache.php
index 795c59f68..e785a000b 100644
|
a
|
b
|
function bp_xprofile_get_non_cached_field_ids( $user_id = 0, $field_ids = array( |
| 53 | 53 | * @param array $object_ids Multi-dimensional array of object_ids, keyed by |
| 54 | 54 | * object type ('group', 'field', 'data'). |
| 55 | 55 | * @return bool |
| | 56 | * |
| | 57 | * @global wpdb $wpdb WordPress database object. |
| 56 | 58 | */ |
| 57 | 59 | function bp_xprofile_update_meta_cache( $object_ids = array() ) { |
| 58 | 60 | global $wpdb; |
diff --git a/src/bp-xprofile/classes/class-bp-xprofile-data-template.php b/src/bp-xprofile/classes/class-bp-xprofile-data-template.php
index 27c6e5be9..b7d3e3297 100644
|
a
|
b
|
class BP_XProfile_Data_Template { |
| 301 | 301 | * Sets up the profile group. |
| 302 | 302 | * |
| 303 | 303 | * @since 1.0.0 |
| | 304 | * @global $group. |
| 304 | 305 | */ |
| 305 | 306 | public function the_profile_group() { |
| 306 | 307 | global $group; |
| … |
… |
class BP_XProfile_Data_Template { |
| 392 | 393 | * Set up the profile fields. |
| 393 | 394 | * |
| 394 | 395 | * @since 1.0.0 |
| | 396 | * @global $field. |
| 395 | 397 | */ |
| 396 | 398 | public function the_profile_field() { |
| 397 | 399 | global $field; |
diff --git a/src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php b/src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php
index 73eac6ab3..08afaae4a 100644
|
a
|
b
|
abstract class BP_XProfile_Field_Type_WordPress extends BP_XProfile_Field_Type { |
| 159 | 159 | * @param integer $user_id The user ID. |
| 160 | 160 | * @param integer $field_id The xProfile field ID. |
| 161 | 161 | * @return array An array containing the metadata `id`, `value` and `table_name`. |
| | 162 | * @global wpdb $wpdb WordPress database object. |
| 162 | 163 | */ |
| 163 | 164 | public function get_field_value( $user_id, $field_id = 0 ) { |
| 164 | 165 | global $wpdb; |