Skip to content

Commit

Permalink
Widgets: minor code and comments cleanup in Facebook Page Plugin.
Browse files Browse the repository at this point in the history
See #6421.

Merges r148069-wpcom.
  • Loading branch information
lancewillett authored and georgestephanis committed Mar 22, 2017
1 parent 42e82d8 commit ae4d068
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/widgets/facebook-likebox.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function jetpack_facebook_likebox_init() {
}

/**
* Facebook Page Plugin (formely known as the Like Box)
* Facebook Page Plugin (formerly known as the Like Box)
* Display a Facebook Page Plugin as a widget (replaces the old like box plugin)
* https://developers.facebook.com/docs/plugins/page-plugin
*/
Expand Down Expand Up @@ -53,7 +53,6 @@ function widget( $args, $instance ) {
return;
}


$title = apply_filters( 'widget_title', $instance['title'] );
$page_url = set_url_scheme( $like_args['href'], 'https' );

Expand Down Expand Up @@ -224,7 +223,7 @@ function normalize_facebook_args( $args ) {
}

function is_valid_facebook_url( $url ) {
return ( FALSE !== strpos( $url, 'facebook.com' ) ) ? TRUE : FALSE;
return ( false !== strpos( $url, 'facebook.com' ) ) ? true : false;
}

function normalize_int_value( $value, $default = 0, $max = 0, $min = 0 ) {
Expand Down Expand Up @@ -295,5 +294,3 @@ function get_locale() {
return $locale;
}
}

// END

0 comments on commit ae4d068

Please sign in to comment.