Skip to content

Commit

Permalink
Floating subscribe button: add source for stats (#39860)
Browse files Browse the repository at this point in the history
  • Loading branch information
simison authored Oct 22, 2024
1 parent 023040d commit b275dbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Floating subscribe button: add source attribute for stats
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function get_template() {
public function get_floating_subscribe_button_template_content() {
$block_name = esc_attr__( 'Floating subscribe button', 'jetpack' );

return '<!-- wp:jetpack/subscriptions {"className":"is-style-button","lock":{"move":false,"remove":true},"style":{"spacing":{"margin":{"right":"20px","left":"20px","top":"20px","bottom":"20px"}}},"metadata":{"name":"' . $block_name . '"}} /-->';
return '<!-- wp:jetpack/subscriptions {"className":"is-style-button","appSource":"subscribe-floating-button","lock":{"move":false,"remove":true},"style":{"spacing":{"margin":{"right":"20px","left":"20px","top":"20px","bottom":"20px"}}},"metadata":{"name":"' . $block_name . '"}} /-->';
}

/**
Expand Down

0 comments on commit b275dbe

Please sign in to comment.