Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/06/2023 11:35:55 PM (2 years ago)
Author:
espellcaste
Message:

PHPCS: adding a little bit of space between brackets.

Closes https://github.com/buddypress/buddypress/pull/44
See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/screens/edit.php

    r12869 r13392  
    5959
    6060            $is_required[ $field_id ] = xprofile_check_is_required_field( $field_id ) && ! bp_current_user_can( 'bp_moderate' );
    61             if ( $is_required[$field_id] && empty( $_POST['field_' . $field_id] ) ) {
     61            if ( $is_required[ $field_id ] && empty( $_POST[ 'field_' . $field_id ] ) ) {
    6262                $errors = true;
    6363            }
     
    7979
    8080                // Certain types of fields (checkboxes, multiselects) may come through empty. Save them as an empty array so that they don't get overwritten by the default on the next edit.
    81                 $value = isset( $_POST['field_' . $field_id] ) ? $_POST['field_' . $field_id] : '';
     81                $value = isset( $_POST[ 'field_' . $field_id ] ) ? $_POST[ 'field_' . $field_id ] : '';
    8282
    83                 $visibility_level = !empty( $_POST['field_' . $field_id . '_visibility'] ) ? $_POST['field_' . $field_id . '_visibility'] : 'public';
     83                $visibility_level = !empty( $_POST[ 'field_' . $field_id . '_visibility' ] ) ? $_POST[ 'field_' . $field_id . '_visibility' ] : 'public';
    8484
    8585                // Save the old and new values. They will be
Note: See TracChangeset for help on using the changeset viewer.