Skip to content

Commit

Permalink
Jetpack Autoupdates: Removed php warning (#9246)
Browse files Browse the repository at this point in the history
* Jetpack Autoupdates: Removed php warning

PHP Warning: Non numeric value encountered.
Fixes typo

* more fixes
  • Loading branch information
enejb committed Apr 9, 2018
1 parent 42069e1 commit 15f10fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions class.jetpack-autoupdate.php
Expand Up @@ -44,7 +44,7 @@ public function autoupdate_translation( $update, $item ) {
if ( Jetpack_Options::get_option( 'autoupdate_translations', false ) ) {
return true;
}

// Themes
$autoupdate_themes_translations = Jetpack_Options::get_option( 'autoupdate_themes_translations', array() );
$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() );
Expand All @@ -64,7 +64,7 @@ public function autoupdate_translation( $update, $item ) {
|| in_array( $item->slug, $autoupdate_theme_list ) )
&& 'theme' === $item->type
) {
$this->expect( $item->type + ':' + $item->slug, 'translation' );
$this->expect( $item->type . ':' . $item->slug, 'translation' );

return true;
}
Expand All @@ -78,7 +78,7 @@ public function autoupdate_translation( $update, $item ) {
if ( in_array( $item->slug, $plugin_slugs )
&& 'plugin' === $item->type
) {
$this->expect( $item->type + ':' + $item->slug, 'translation' );
$this->expect( $item->type . ':' . $item->slug, 'translation' );
return true;
}

Expand Down Expand Up @@ -220,7 +220,7 @@ private function get_successful_updates( $type ) {
$successful_updates[] = $result->item->theme;
break;
case 'translation':
$successful_updates[] = $result->item->type + ':' + $result->item->slug;
$successful_updates[] = $result->item->type . ':' . $result->item->slug;
break;
}
}
Expand Down

0 comments on commit 15f10fa

Please sign in to comment.