Skip to content

Commit

Permalink
Verbum: fix redirect & error (#40494)
Browse files Browse the repository at this point in the history
Co-authored-by: Tony <tony@Toilet-Paper-PRO.local>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12278002880

Upstream-Ref: Automattic/jetpack@a5c8473
  • Loading branch information
arcangelini authored and matticbot committed Dec 11, 2024
1 parent 3d336a1 commit 0b0da36
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 90 deletions.
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This is an alpha version! The changes listed here are not final.
- Use wp_add_inline_script

### Fixed
- Comments: add cookie consent input and fix console error
- Holiday Snow: do not display on p2s.
- Load WPCOM sidebar notice async
- Restore visited button color in themes.php to Core's default
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'cecf4e7821f74250733a');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '0b4f9908fccda8a8b143');

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ export const EmailForm = ( { shouldShowEmailForm }: EmailFormProps ) => {
<input type="hidden" name="sub-type" value="verbum-subscription-toggle" />
</>
) }
{ shouldStoreEmailData.value && (
<input type="hidden" name="wp-comment-cookies-consent" value="1" />
) }
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ export default function useSocialLogin() {
wpcomRequest< UserInfo >( {
path: '/verbum/auth',
apiNamespace: 'wpcom/v2',
} ).then( res => {
userInfo.value = res;
} );
} )
.then( res => {
userInfo.value = res;
} )
.catch( () => {
// User may not be logged in.
} );
}, [] );

if ( VerbumComments.isJetpackCommentsLoggedIn ) {
Expand Down
Loading

0 comments on commit 0b0da36

Please sign in to comment.