Skip to content

Commit

Permalink
spacing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Jun 18, 2014
1 parent df25641 commit 28ff5ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/class-plugin-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ public function plugins_api( $false, $action, $response ) {
* @return mixed
*/
public function pre_set_site_transient_update_plugins( $transient ) {
if ( empty( $transient->checked ) ) { return $transient; }
if ( empty( $transient->checked ) ) {
return $transient;
}

foreach ( (array) $this->config as $plugin ) {
$remote_is_newer = ( 1 === version_compare( $plugin->remote_version, $plugin->local_version ) );
Expand All @@ -139,7 +141,7 @@ public function pre_set_site_transient_update_plugins( $transient ) {
);

// if branch is 'master' and plugin is in wp.org repo then pull update from wp.org
if ( isset( $transient->response[ $plugin->slug ]->id ) && 'master' === $plugin->branch ) { continue; }
if ( isset( $transient->response[ $plugin->slug]->id ) && 'master' === $plugin->branch ) { continue; }

$transient->response[ $plugin->slug ] = (object) $response;
}
Expand Down

0 comments on commit 28ff5ce

Please sign in to comment.