Skip to content

Commit

Permalink
Check autoshare_enabled function in maybe_autoshare
Browse files Browse the repository at this point in the history
  • Loading branch information
John Watkins committed Jan 29, 2020
1 parent 60af3b7 commit 13bbad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function autoshare_enabled( $post_id ) {
* @return bool
*/
function maybe_autoshare( $post_id ) {
return ( 1 === intval( get_autoshare_for_twitter_meta( $post_id, ENABLE_AUTOSHARE_FOR_TWITTER_KEY ) ) ) ? true : false;
return ( 1 === intval( autoshare_enabled( $post_id ) ) ) ? true : false;
}

/**
Expand Down

0 comments on commit 13bbad4

Please sign in to comment.