Skip to content

Commit

Permalink
Verbum Comments: Fix iframe resize logic (#39791)
Browse files Browse the repository at this point in the history
* Add changes to fix Verbum comments resize logic

* changelog

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

Upstream-Ref: Automattic/jetpack@4372e5d
  • Loading branch information
agrullon95 authored and matticbot committed Oct 24, 2024
1 parent fb499ce commit f2a5c50
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 85 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 @@ -35,6 +35,7 @@ This is an alpha version! The changes listed here are not final.
- Updated copies used in the plugins banner for wpcom sites plugin-install.php page.
- Updated package dependencies.
- Update Jetpack Scan link
- Update Verbum Comments resize logic
- wpcom_add_shopping_cart: Use Store_Shopping_Cart::is_cart_empty() when deciding to render icon for incrased performance

### Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public function enqueue_assets() {
$jetpack_username = isset( $__get['hc_username'] ) && is_string( $__get['hc_username'] ) ? $__get['hc_username'] : '';
$jetpack_user_id = isset( $__get['hc_userid'] ) && is_numeric( $__get['hc_userid'] ) ? (int) $__get['hc_userid'] : 0;
$jetpack_signature = isset( $__get['sig'] ) && is_string( $__get['sig'] ) ? $__get['sig'] : '';
$iframe_unique_id = isset( $__get['iframe_unique_id'] ) && is_numeric( $__get['iframe_unique_id'] ) ? (int) $__get['iframe_unique_id'] : 0;
list( $jetpack_avatar ) = wpcom_get_avatar_url( "$email_hash@md5.gravatar.com" );
$comment_registration_enabled = boolval( get_blog_option( $this->blog_id, 'comment_registration' ) );
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
Expand Down Expand Up @@ -255,6 +256,7 @@ public function enqueue_assets() {
'verbumBundleUrl' => plugins_url( 'dist/index.js', __FILE__ ),
'isRTL' => is_rtl( $locale ),
'vbeCacheBuster' => $vbe_cache_buster,
'iframeUniqueId' => $iframe_unique_id,
)
),
'before'
Expand Down
Loading

0 comments on commit f2a5c50

Please sign in to comment.