Skip to content

Commit 906191a

Browse files
Add tracking to Jetpack review link on plugins page (#36348)
* Add tracking to Jetpack review link on plugins page * changelog
1 parent bcae064 commit 906191a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: other
3+
4+
Add tracking to Jetpack review link on plugins page

projects/plugins/jetpack/class.jetpack.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -6734,7 +6734,10 @@ public function add_5_star_review_link( $plugin_meta, $plugin_file ) {
67346734
return $plugin_meta;
67356735
}
67366736

6737-
$plugin_meta[] = '<a href="https://wordpress.org/support/plugin/jetpack/reviews/?filter=5" target="_blank" rel="noopener noreferrer" title="' . esc_attr__( 'Rate Jetpack on WordPress.org', 'jetpack' ) . '" style="color: #ffb900">'
6737+
$u = get_current_user_id();
6738+
$site = get_site_url();
6739+
6740+
$plugin_meta[] = '<a href="https://jetpack.com/redirect?source=jetpack-plugin-review&site=' . esc_attr( $site ) . '&u=' . esc_attr( $u ) . '" target="_blank" rel="noopener noreferrer" title="' . esc_attr__( 'Rate Jetpack on WordPress.org', 'jetpack' ) . '" style="color: #ffb900">'
67386741
. str_repeat( '<span class="dashicons dashicons-star-filled" style="font-size: 16px; width:16px; height: 16px"></span>', 5 )
67396742
. '</a>';
67406743

0 commit comments

Comments
 (0)