Title: BC oAuth patch
Last modified: August 20, 2016

---

# BC oAuth patch

 *  [enderandrew](https://wordpress.org/support/users/enderandrew/)
 * (@enderandrew)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/bc-oauth-patch/)
 * Your email address bounced, so I’m posting this here:
 * diff -uNrib plugins-old/bc-oauth/Classes/Google.php plugins-new/bc-oauth/Classes/
   Google.php
    — plugins-old/bc-oauth/Classes/Google.php 2011-07-30 00:11:35.730902100-
   0500 +++ plugins-new/bc-oauth/Classes/Google.php 2011-08-04 18:37:15.041985100-
   0500 @@ -60,7 +60,7 @@ if (empty($_GET[“oauth_token”])){ $getAuthTokenParams 
   = array( ‘scope’ => ‘[http://www.google.com/m8/feeds/contacts/default/full&#8217](http://www.google.com/m8/feeds/contacts/default/full&#8217);,–‘
   xoauth_displayname’ => ‘bettercodes.org’, + ‘xoauth_displayname’ => $_SERVER[‘
   HTTP_HOST’], ‘oauth_callback’ => $this->call_back );
 * diff -uNrib plugins-old/bc-oauth/bc_oauth_templatetags.php plugins-new/bc-oauth/
   bc_oauth_templatetags.php
    — plugins-old/bc-oauth/bc_oauth_templatetags.php 2011-
   07-30 00:11:30.437599300 -0500 +++ plugins-new/bc-oauth/bc_oauth_templatetags.
   php 2011-08-08 00:12:43.546506200 -0500 @@ -231,7 +231,7 @@
 *  global $bp;
 * – add_filter(‘attribute_escape’, ‘bc_oauth_remove_attribute_escape_in_bp_message’,
   5, 2);
    + add_filter(‘esc_attr’, ‘bc_oauth_remove_esc_attr_in_bp_message’, 5,
   2);
 *  if( isset($bp->loggedin_user->userdata->user_email) && empty($bp->loggedin_user-
   >userdata->user_email) )
    bp_core_add_message(‘Your e-mail address is empty, 
   please go to your [profile page](https://wordpress.org/support/topic/bc-oauth-patch/&apos;. bp_get_loggedin_user_link() . BP_SETTINGS_SLUG .&apos;?output_format=md)
   and insert one. Otherwise you cant\’t get <b>important notices and informations
   </b> from ‘ . get_bloginfo(‘name’) . ‘.’ , ‘info’); @@ -246,8 +246,8 @@ * [@param](https://wordpress.org/support/users/param/)
   string $safe_text the escaped string * [@param](https://wordpress.org/support/users/param/)
   string $text the original string */ -function bc_oauth_remove_attribute_escape_in_bp_message(
   $safe_text, $text) { – remove_filter(‘attribute_escape’, ‘bc_oauth_remove_attribute_escape_in_bp_message’);
   +function bc_oauth_remove_esc_attr_in_bp_message($safe_text, $text) { + remove_filter(‘
   esc_attr’, ‘bc_oauth_remove_esc_attr_in_bp_message’); return $text; }

The topic ‘BC oAuth patch’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bc-oauth.svg)
 * [BC oAuth](https://wordpress.org/plugins/bc-oauth/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bc-oauth/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bc-oauth/)
 * [Active Topics](https://wordpress.org/support/plugin/bc-oauth/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bc-oauth/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bc-oauth/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [enderandrew](https://wordpress.org/support/users/enderandrew/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/bc-oauth-patch/)
 * Status: not resolved