Skip to content

Commit

Permalink
Sharing: test for global as well, as we're about to use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Jan 25, 2017
1 parent a64b628 commit 4f0e802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sharedaddy/sharing-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function get_blog_services() {
* This avoids issues on sites with corrupted options.
* @see https://github.com/Automattic/jetpack/issues/6121
*/
if ( ! is_array( $options ) || ! isset( $options['button_style'] ) ) {
if ( ! is_array( $options ) || ! isset( $options['button_style'], $options['global'] ) ) {
$options = array( 'global' => $this->get_global_options() );
}

Expand Down

0 comments on commit 4f0e802

Please sign in to comment.