Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2020 12:44:17 PM (5 years ago)
Author:
imath
Message:

xProfile: fix PHP Code standards in inline comments

Props passoniate

Fixes #8215
Fixes #8216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r12317 r12529  
    178178            $this->populate( $id, $user_id, $get_data );
    179179
    180         // Initialise the type obj to prevent fatals when creating new profile fields.
     180        // Initialize the type obj to prevent fatals when creating new profile fields.
    181181        } else {
    182182            $this->type_obj            = bp_xprofile_create_field_type( 'textbox' );
     
    640640            }
    641641
    642             // If no member types have been saved, intepret as *all* member types.
     642            // If no member types have been saved, interpret as *all* member types.
    643643            if ( empty( $types ) ) {
    644644                $types = array_values( $registered_types );
     
    10731073
    10741074    /**
    1075      * Validate form field data on sumbission.
     1075     * Validate form field data on submission.
    10761076     *
    10771077     * @since 2.2.0
     
    11081108        }
    11091109
    1110         // Get field type so we can check for and lavidate any field options.
     1110        // Get field type so we can check for and validate any field options.
    11111111        $field_type = bp_xprofile_create_field_type( $_POST['fieldtype'] );
    11121112
     
    11761176    public function render_admin_form( $message = '' ) {
    11771177
    1178         // Users Admin URL
     1178        // Users Admin URL.
    11791179        $users_url = bp_get_admin_url( 'users.php' );
    11801180
    1181         // Add New
     1181        // Add New.
    11821182        if ( empty( $this->id ) ) {
    11831183            $title  = __( 'Add New Field', 'buddypress' );
     
    12011201            }
    12021202
    1203         // Edit
     1203        // Edit.
    12041204        } else {
    12051205            $title  = __( 'Edit Field', 'buddypress' );
     
    16141614    private function default_field_hidden_inputs() {
    16151615
    1616         // Nonce
     1616        // Nonce.
    16171617        wp_nonce_field( 'bp_xprofile_admin_field', 'bp_xprofile_admin_field' );
    16181618
Note: See TracChangeset for help on using the changeset viewer.