Skip to content

Commit

Permalink
Social | Disable caching for publicize services list (#41149)
Browse files Browse the repository at this point in the history
* Social Disable caching for publicize services list

* Add a comment
  • Loading branch information
manzoorwanijk authored Jan 17, 2025
1 parent 54d732a commit c4666af
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Social Disable caching for publicize services list to avoid stale nonces
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,13 @@ public static function get_shares_data() {
* @return array List of external services and their settings.
*/
public static function get_supported_services() {
return Publicize_Services::get_all();
/**
* Disable caching for now to avoid nonce errors
* for secondary users trying to connect an account
*
* @link https://github.com/Automattic/jetpack/pull/41149
*/
return Publicize_Services::get_all( true /* Ignore cache */ );
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Social | Fix wordpress.com log in error when connecting Social accounts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed wordpress.com log in error when connecting Social accounts

0 comments on commit c4666af

Please sign in to comment.