Skip to content

Commit

Permalink
Syntax error fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Feb 10, 2021
1 parent ea709c3 commit f75574b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions connectors/class-connector-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ public function callback_jetpack_log_entry( array $entry ) {
$action = $method;
$meta = compact( 'user_id', 'user_email', 'user_login' );
$message = sprintf(
/* translators: %1$s: a user display name, %2$s: a status, %3$s: the connection either "from" or "to" (e.g. "Jane Doe", "unlinked", "from") */
/* translators: %1$s: a user display name, %2$s: a status and the connection either "from" or "to" (e.g. "Jane Doe", "unlinked from") */
__( '%1$s\'s account %2$s Jetpack', 'stream' ),
$user->display_name,
( 'unlink' === $action ) ? esc_html__( 'unlinked from', 'stream' ) : esc_html__( 'linked to', 'stream' ),
( 'unlink' === $action ) ? esc_html__( 'unlinked from', 'stream' ) : esc_html__( 'linked to', 'stream' )
);
} elseif ( in_array( $method, array( 'register', 'disconnect', 'subsiteregister', 'subsitedisconnect' ), true ) ) {
$context = 'blogs';
Expand Down
16 changes: 8 additions & 8 deletions tests/tests/connectors/test-class-connector-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function test_callback_jetpack_log_entry() {
\Jetpack::log( 'register' );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_jetpack_log_entry' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_jetpack_log_entry' ) );
}

public function test_callback_sharing_get_services_state() {
Expand Down Expand Up @@ -116,7 +116,7 @@ public function test_callback_sharing_get_services_state() {
);

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_sharing_get_services_state' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_sharing_get_services_state' ) );
}

public function test_callback_jetpack_module_configuration_load_monitor() {
Expand Down Expand Up @@ -145,7 +145,7 @@ public function test_callback_jetpack_module_configuration_load_monitor() {
do_action( 'jetpack_module_configuration_load_monitor' );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_jetpack_module_configuration_load_monitor' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_jetpack_module_configuration_load_monitor' ) );
}

public function test_check() {
Expand Down Expand Up @@ -229,8 +229,8 @@ public function test_check() {
$this->assertEquals( 200, $response->get_status() );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_add_option' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_update_option' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_add_option' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_update_option' ) );
}

public function test_track_post_by_email() {
Expand Down Expand Up @@ -298,8 +298,8 @@ public function test_track_post_by_email() {
do_action( 'wp_ajax_jetpack_post_by_email_regenerate' );

// Check callback test action.
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_wp_ajax_jetpack_post_by_email_enable' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_wp_ajax_jetpack_post_by_email_regenerate' ) );
$this->assertFalse( 0 === did_action( 'wp_stream_test_callback_wp_ajax_jetpack_post_by_email_disable' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_wp_ajax_jetpack_post_by_email_enable' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_wp_ajax_jetpack_post_by_email_regenerate' ) );
$this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_wp_ajax_jetpack_post_by_email_disable' ) );
}
}

0 comments on commit f75574b

Please sign in to comment.