Skip to:
Content

BuddyPress.org

Ticket #8890: 8890.diff

File 8890.diff, 3.8 KB (added by viralsampat, 3 years ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/bp-xprofile/bp-xprofile-admin.php

    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' ) { 
    409409 * @since 1.0.0
    410410 *
    411411 * @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.
    412415 */
    413416function xprofile_admin_manage_group( $group_id = null ) {
    414417        global $message, $type;
    function xprofile_admin_manage_group( $group_id = null ) { 
    476479 * @since 1.0.0
    477480 *
    478481 * @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.
    479485 */
    480486function xprofile_admin_delete_group( $group_id ) {
    481487        global $message, $type;
    function xprofile_admin_delete_group_screen( $group_id ) { 
    556562 *
    557563 * @param int      $group_id ID of the group.
    558564 * @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.
    559568 */
    560569function xprofile_admin_manage_field( $group_id, $field_id = null ) {
    561570        global $wpdb, $message, $groups;
    add_action( 'wp_ajax_xprofile_reorder_groups', 'xprofile_ajax_reorder_field_grou 
    10111020 * @param object $admin_group Admin group object.
    10121021 * @param string $class       Classes to append to output.
    10131022 * @param bool   $is_signup   Whether the admin field output is made inside the signup group.
     1023 * @global $field.
    10141024 */
    10151025function xprofile_admin_field( $admin_field, $admin_group, $class = '', $is_signup = false ) {
    10161026        global $field;
  • src/bp-xprofile/bp-xprofile-cache.php

    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( 
    5353 * @param array $object_ids Multi-dimensional array of object_ids, keyed by
    5454 *                          object type ('group', 'field', 'data').
    5555 * @return bool
     56 *
     57 * @global wpdb $wpdb WordPress database object.
    5658 */
    5759function bp_xprofile_update_meta_cache( $object_ids = array() ) {
    5860        global $wpdb;
  • src/bp-xprofile/classes/class-bp-xprofile-data-template.php

    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 { 
    301301         * Sets up the profile group.
    302302         *
    303303         * @since 1.0.0
     304         * @global $group.
    304305         */
    305306        public function the_profile_group() {
    306307                global $group;
    class BP_XProfile_Data_Template { 
    392393         * Set up the profile fields.
    393394         *
    394395         * @since 1.0.0
     396         * @global $field.
    395397         */
    396398        public function the_profile_field() {
    397399                global $field;
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php

    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 { 
    159159         * @param integer $user_id The user ID.
    160160         * @param integer $field_id The xProfile field ID.
    161161         * @return array An array containing the metadata `id`, `value` and `table_name`.
     162         * @global wpdb $wpdb WordPress database object.
    162163         */
    163164        public function get_field_value( $user_id, $field_id = 0 ) {
    164165                global $wpdb;