Permalink
Browse files

Bug fix for when the linked account user ID is the zero key in the list

  • Loading branch information...
1 parent b4f3854 commit db5857d59e7bc442d1ff1b22825fcbe05fc09774 @danielbachhuber danielbachhuber committed Nov 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 php/class-coauthors-guest-authors.php
@@ -483,7 +483,7 @@ function metabox_manage_guest_author_slug() {
add_filter( 'wp_dropdown_users', array( $this, 'filter_wp_dropdown_users_to_disable' ) );
$linked_account_user_ids = wp_list_pluck( $this->get_all_linked_accounts(), 'ID' );
- if ( $key = array_search( $linked_account_id, $linked_account_user_ids ) )
+ if ( false !== ( $key = array_search( $linked_account_id, $linked_account_user_ids ) ) )
unset( $linked_account_user_ids[$key] );
echo '<p><label>' . __( 'WordPress User Mapping', 'co-authors-plus' ) . '</label> ';

0 comments on commit db5857d

Please sign in to comment.