Skip to content

Commit

Permalink
Jetpack Sync: Make the tests pass on the .com side (#10111)
Browse files Browse the repository at this point in the history
* Jetpack Sync: Make the tests pass on the .com side

* Minor space fix

* Make spacing equal to wpcom file
  • Loading branch information
enejb authored and dereksmart committed Sep 17, 2018
1 parent 2b8b107 commit 31e0141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync/class.jetpack-sync-module-themes.php
Expand Up @@ -357,7 +357,7 @@ public function init_full_sync_listeners( $callable ) {
add_action( 'jetpack_full_sync_theme_data', $callable );
}

public function sync_theme_support( $new_name, $new_theme, $old_theme = null ) {
public function sync_theme_support( $new_name, $new_theme = null, $old_theme = null ) {
// Previous theme support got added in WP 4.5
$previous_theme = false;
if ( $old_theme instanceof WP_Theme ) {
Expand Down Expand Up @@ -613,4 +613,4 @@ private function get_delete_theme_call() {
private function is_theme_switch() {
return did_action( 'after_switch_theme' );
}
}
}

0 comments on commit 31e0141

Please sign in to comment.