Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/08/2015 09:43:47 PM (7 years ago)
Author:
johnjamesjacoby
Message:

s/else if/elseif/

"The keyword elseif should be used instead of else if so that all control keywords look like single words."

Props wonderboymusic, hnla. See #6097.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r8772 r9315  
    126126
    127127    // Less than 2x full-width: cropper defaults to full-width
    128     } else if ( $image[0] < ( $full_width * 2 ) ) {
     128    } elseif ( $image[0] < ( $full_width * 2 ) ) {
    129129        $padding_w  = round( ( $image[0] - $full_width ) / 2 );
    130130        $crop_left  = $padding_w;
     
    143143
    144144    // Less than double full-height: cropper defaults to full-height
    145     } else if ( $image[1] < ( $full_height * 2 ) ) {
     145    } elseif ( $image[1] < ( $full_height * 2 ) ) {
    146146        $padding_h   = round( ( $image[1] - $full_height ) / 2 );
    147147        $crop_top    = $padding_h;
Note: See TracChangeset for help on using the changeset viewer.