• Resolved Matt Robinson

    (@mattyrob)


    Thanks for a great plugin, one I have used for several years.

    I think this is a logic issue in the current wpt_needs_bearer_token() function in the wp-to-twitter.php file.

    Currently, I am seeing an error message about needing a bearer token in my Profile page, but it is present in the X-Poster settings.

    I think this is because in my case the Allow user to authenticate with X.com option is not checked, but the above function check if the profile page is in use and if it is tried to get the bearer token from meta with get_user_meta( $auth, 'bearer_token', true );

    A local fix that worked for me is to update the fir if statement to:

    if ( 'profile' === $screen->id && get_option( 'jd_individual_twitter_users' ) ) {

    I hope you fins this useful, please let me know if I can provide more details.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Logic issue in wpt_needs_bearer_token(()’ is closed to new replies.