Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/24/2016 11:25:35 AM (5 years ago)
Author:
djpaul
Message:

Core, Groups, Members, XProfile: improve code readability

This grab bag of misc. improvements improves code readability across a handful of places identified by Scrutinizer-CI

See #5891

File:
1 edited

Legend:

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

    r10882 r11033  
    145145
    146146        // Run some checks on the submitted value.
    147         if ( false === strpos( $submitted_value, ':'  )
    148              && substr( $submitted_value, 0, 1 ) !== '/'
    149              && substr( $submitted_value, 0, 1 ) !== '#'
    150              && ! preg_match( '/^[a-z0-9-]+?\.php/i', $submitted_value )
     147        if ( false === strpos( $submitted_value, ':'  ) &&
     148            substr( $submitted_value, 0, 1 ) !== '/' &&
     149            substr( $submitted_value, 0, 1 ) !== '#' &&
     150            ! preg_match( '/^[a-z0-9-]+?\.php/i', $submitted_value )
    151151        ) {
    152152            $submitted_value = 'http://' . $submitted_value;
Note: See TracChangeset for help on using the changeset viewer.