Changeset 3810481
- Timestamp:
- 11/19/2026 01:03:59 AM (less than one hour ago)
- Location:
- blootrue-reviews-widget
- Files:
-
- 10 edited
- 1 copied
-
tags/1.3.2 (copied) (copied from blootrue-reviews-widget/trunk )
-
tags/1.3.2/blootrue-reviews-widget.php (modified) (2 diffs)
-
tags/1.3.2/includes/class-blootrue-admin.php (modified) (3 diffs)
-
tags/1.3.2/includes/class-blootrue-block.php (modified) (1 diff)
-
tags/1.3.2/includes/class-blootrue-connect.php (modified) (3 diffs)
-
tags/1.3.2/readme.txt (modified) (4 diffs)
-
trunk/blootrue-reviews-widget.php (modified) (2 diffs)
-
trunk/includes/class-blootrue-admin.php (modified) (3 diffs)
-
trunk/includes/class-blootrue-block.php (modified) (1 diff)
-
trunk/includes/class-blootrue-connect.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blootrue-reviews-widget/tags/1.3.2/blootrue-reviews-widget.php
r3806314 r3810481 4 4 * Plugin URI: https://www.blootrue.com/widgets?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=plugin_uri 5 5 * Description: Show your Google, Yelp, Facebook, TripAdvisor and 20+ platform reviews on your site in animated widgets, plus a before/after Work Showcase and a photo-quote form. Block, shortcode and sidebar widget. Free plan, no coding. 6 * Version: 1.3. 16 * Version: 1.3.2 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 20 20 } 21 21 22 define( 'BLOOTRUE_WP_VERSION', '1.3. 1' );22 define( 'BLOOTRUE_WP_VERSION', '1.3.2' ); 23 23 define( 'BLOOTRUE_WP_FILE', __FILE__ ); 24 24 define( 'BLOOTRUE_WP_DIR', plugin_dir_path( __FILE__ ) ); -
blootrue-reviews-widget/tags/1.3.2/includes/class-blootrue-admin.php
r3737416 r3810481 266 266 $msg_raw = isset( $_GET['blootrue_msg'] ) ? sanitize_text_field( wp_unslash( $_GET['blootrue_msg'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only notice text. 267 267 $msg = sanitize_text_field( rawurldecode( $msg_raw ) ); 268 $signup = BLOOTRUE_APP_ORIGIN . '/signup?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=settings';269 268 $app = BLOOTRUE_APP_ORIGIN . '/widgets?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=settings'; 270 269 ?> … … 338 337 <?php esc_html_e( 'Add one from your BlooTrue widgets above.', 'blootrue-reviews-widget' ); ?> 339 338 <?php else : ?> 340 <a href="<?php echo esc_url( $signup ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Create a free widget in BlooTrue', 'blootrue-reviews-widget' ); ?></a>341 <?php esc_html_e( '(about a minute) , then connect above andadd it.', 'blootrue-reviews-widget' ); ?>339 <a href="<?php echo esc_url( Blootrue_Connect::start_url( 'list' ) ); ?>"><?php esc_html_e( 'Create a free widget in BlooTrue', 'blootrue-reviews-widget' ); ?></a> 340 <?php esc_html_e( '(about a minute). You come straight back here to add it.', 'blootrue-reviews-widget' ); ?> 342 341 <?php endif; ?> 343 342 </p> … … 414 413 <li><?php esc_html_e( 'Free widgets show the latest 10 reviews from the day they are created. New reviews sync every day on Starter.', 'blootrue-reviews-widget' ); ?></li> 415 414 </ul> 416 <p><a class="button" href="<?php echo esc_url( Blootrue_Connect::connection() ? Blootrue_Connect::create_url() : $signup ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Create a free widget', 'blootrue-reviews-widget' ); ?></a></p> 415 <?php if ( Blootrue_Connect::connection() ) : ?> 416 <p><a class="button" href="<?php echo esc_url( Blootrue_Connect::create_url() ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Create a free widget', 'blootrue-reviews-widget' ); ?></a></p> 417 <?php else : ?> 418 <p><a class="button" href="<?php echo esc_url( Blootrue_Connect::start_url( 'create' ) ); ?>"><?php esc_html_e( 'Create a free widget', 'blootrue-reviews-widget' ); ?></a></p> 419 <?php endif; ?> 417 420 </div> 418 421 <div class="blootrue-card blootrue-card--muted"> -
blootrue-reviews-widget/tags/1.3.2/includes/class-blootrue-block.php
r3737416 r3810481 75 75 'typeLabels' => Blootrue_Registry::type_labels(), 76 76 'settingsUrl' => admin_url( 'options-general.php?page=' . Blootrue_Admin::PAGE ), 77 'appUrl' => BLOOTRUE_APP_ORIGIN . '/signup?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=block', 77 // Not connected: the link connects (and signs up), then comes back 78 // to the plugin page. It was a plain sign-up with no way back 79 // (Mike 2026-11-18). Connected: create in the app, with the way back. 80 'appUrl' => Blootrue_Connect::connection() ? Blootrue_Connect::create_url() : Blootrue_Connect::start_url( 'block' ), 78 81 'apiOrigin' => Blootrue_Render::api_origin(), 79 82 'iconUrl' => BLOOTRUE_WP_URL . 'assets/icon.svg', -
blootrue-reviews-widget/tags/1.3.2/includes/class-blootrue-connect.php
r3806314 r3810481 81 81 82 82 /** 83 * Where a link may start connecting from, and the utm_campaign it gets. 84 * Mike 2026-11-18: the "Create a free widget" links on a site that was not 85 * connected went to a plain BlooTrue sign-up with no way back, so people 86 * signed up, pasted the code into their page and never connected the 87 * plugin. Those links now start connecting (which signs people up too). 88 */ 89 const START_FROM = array( 'create', 'list', 'block' ); 90 91 /** 92 * A link that starts connecting, the same as the Connect BlooTrue button. 93 * Admin-only and nonce-checked by handle_start(). 94 * 95 * @param string $from One of START_FROM: which link it is. 96 * @return string 97 */ 98 public static function start_url( $from ) { 99 return wp_nonce_url( 100 add_query_arg( 101 array( 102 'action' => 'blootrue_connect_start', 103 'from' => in_array( $from, self::START_FROM, true ) ? $from : 'create', 104 ), 105 admin_url( 'admin-post.php' ) 106 ), 107 self::NONCE_START 108 ); 109 } 110 111 /** 83 112 * "Create a new widget" in the app, with the way back to this page. 84 113 * … … 247 276 248 277 /** 249 * POST: start connecting. Off to BlooTrue with a one-time state. 278 * Start connecting (the button posts, the create links are GET links with 279 * the same nonce). Off to BlooTrue with a one-time state. 250 280 */ 251 281 public static function handle_start() { 252 282 self::guard( self::NONCE_START ); 283 $from = isset( $_REQUEST['from'] ) ? sanitize_key( wp_unslash( $_REQUEST['from'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- checked by guard() above. 284 $campaign = in_array( $from, self::START_FROM, true ) ? 'connect_' . $from : 'connect'; 253 285 $state = wp_generate_password( 32, false, false ); 254 286 update_user_meta( … … 263 295 $url = add_query_arg( 264 296 array_merge( 265 self::utm( 'connect'),297 self::utm( $campaign ), 266 298 array( 267 299 'site' => rawurlencode( self::site() ), -
blootrue-reviews-widget/tags/1.3.2/readme.txt
r3806314 r3810481 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 38 38 * Edit the design in BlooTrue and your site updates by itself. No re-paste. 39 39 40 **Free plan**: one widget, one review source, unlimited views, the latest 10 reviews from the day the widget is created. Starter ($ 9/month or $84/year) syncs new reviews every day, removes the BlooTrue badge and unlocks every style and animation.40 **Free plan**: one widget, one review source, unlimited views, the latest 10 reviews from the day the widget is created. Starter ($7/month, billed yearly) syncs new reviews every day, removes the BlooTrue badge and unlocks every style and animation. 41 41 42 42 == Installation == … … 117 117 == Changelog == 118 118 119 = 1.3.2 = 120 * “Create a free widget” now connects this site to BlooTrue first (creating your free account if you need one) and brings you back here to add the widget. No code to copy. 121 119 122 = 1.3.1 = 120 123 * When your site is connected to BlooTrue, the plugin tells your account when it is deactivated, activated again or deleted, so the account shows whether it is still on your site. … … 141 144 == Upgrade Notice == 142 145 146 = 1.3.2 = 147 “Create a free widget” connects your site and brings you back to add it. 148 143 149 = 1.3.1 = 144 150 Adds a dismissible review request, 2 days after your first live widget. -
blootrue-reviews-widget/trunk/blootrue-reviews-widget.php
r3806314 r3810481 4 4 * Plugin URI: https://www.blootrue.com/widgets?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=plugin_uri 5 5 * Description: Show your Google, Yelp, Facebook, TripAdvisor and 20+ platform reviews on your site in animated widgets, plus a before/after Work Showcase and a photo-quote form. Block, shortcode and sidebar widget. Free plan, no coding. 6 * Version: 1.3. 16 * Version: 1.3.2 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 20 20 } 21 21 22 define( 'BLOOTRUE_WP_VERSION', '1.3. 1' );22 define( 'BLOOTRUE_WP_VERSION', '1.3.2' ); 23 23 define( 'BLOOTRUE_WP_FILE', __FILE__ ); 24 24 define( 'BLOOTRUE_WP_DIR', plugin_dir_path( __FILE__ ) ); -
blootrue-reviews-widget/trunk/includes/class-blootrue-admin.php
r3737416 r3810481 266 266 $msg_raw = isset( $_GET['blootrue_msg'] ) ? sanitize_text_field( wp_unslash( $_GET['blootrue_msg'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only notice text. 267 267 $msg = sanitize_text_field( rawurldecode( $msg_raw ) ); 268 $signup = BLOOTRUE_APP_ORIGIN . '/signup?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=settings';269 268 $app = BLOOTRUE_APP_ORIGIN . '/widgets?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=settings'; 270 269 ?> … … 338 337 <?php esc_html_e( 'Add one from your BlooTrue widgets above.', 'blootrue-reviews-widget' ); ?> 339 338 <?php else : ?> 340 <a href="<?php echo esc_url( $signup ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Create a free widget in BlooTrue', 'blootrue-reviews-widget' ); ?></a>341 <?php esc_html_e( '(about a minute) , then connect above andadd it.', 'blootrue-reviews-widget' ); ?>339 <a href="<?php echo esc_url( Blootrue_Connect::start_url( 'list' ) ); ?>"><?php esc_html_e( 'Create a free widget in BlooTrue', 'blootrue-reviews-widget' ); ?></a> 340 <?php esc_html_e( '(about a minute). You come straight back here to add it.', 'blootrue-reviews-widget' ); ?> 342 341 <?php endif; ?> 343 342 </p> … … 414 413 <li><?php esc_html_e( 'Free widgets show the latest 10 reviews from the day they are created. New reviews sync every day on Starter.', 'blootrue-reviews-widget' ); ?></li> 415 414 </ul> 416 <p><a class="button" href="<?php echo esc_url( Blootrue_Connect::connection() ? Blootrue_Connect::create_url() : $signup ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Create a free widget', 'blootrue-reviews-widget' ); ?></a></p> 415 <?php if ( Blootrue_Connect::connection() ) : ?> 416 <p><a class="button" href="<?php echo esc_url( Blootrue_Connect::create_url() ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Create a free widget', 'blootrue-reviews-widget' ); ?></a></p> 417 <?php else : ?> 418 <p><a class="button" href="<?php echo esc_url( Blootrue_Connect::start_url( 'create' ) ); ?>"><?php esc_html_e( 'Create a free widget', 'blootrue-reviews-widget' ); ?></a></p> 419 <?php endif; ?> 417 420 </div> 418 421 <div class="blootrue-card blootrue-card--muted"> -
blootrue-reviews-widget/trunk/includes/class-blootrue-block.php
r3737416 r3810481 75 75 'typeLabels' => Blootrue_Registry::type_labels(), 76 76 'settingsUrl' => admin_url( 'options-general.php?page=' . Blootrue_Admin::PAGE ), 77 'appUrl' => BLOOTRUE_APP_ORIGIN . '/signup?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=block', 77 // Not connected: the link connects (and signs up), then comes back 78 // to the plugin page. It was a plain sign-up with no way back 79 // (Mike 2026-11-18). Connected: create in the app, with the way back. 80 'appUrl' => Blootrue_Connect::connection() ? Blootrue_Connect::create_url() : Blootrue_Connect::start_url( 'block' ), 78 81 'apiOrigin' => Blootrue_Render::api_origin(), 79 82 'iconUrl' => BLOOTRUE_WP_URL . 'assets/icon.svg', -
blootrue-reviews-widget/trunk/includes/class-blootrue-connect.php
r3806314 r3810481 81 81 82 82 /** 83 * Where a link may start connecting from, and the utm_campaign it gets. 84 * Mike 2026-11-18: the "Create a free widget" links on a site that was not 85 * connected went to a plain BlooTrue sign-up with no way back, so people 86 * signed up, pasted the code into their page and never connected the 87 * plugin. Those links now start connecting (which signs people up too). 88 */ 89 const START_FROM = array( 'create', 'list', 'block' ); 90 91 /** 92 * A link that starts connecting, the same as the Connect BlooTrue button. 93 * Admin-only and nonce-checked by handle_start(). 94 * 95 * @param string $from One of START_FROM: which link it is. 96 * @return string 97 */ 98 public static function start_url( $from ) { 99 return wp_nonce_url( 100 add_query_arg( 101 array( 102 'action' => 'blootrue_connect_start', 103 'from' => in_array( $from, self::START_FROM, true ) ? $from : 'create', 104 ), 105 admin_url( 'admin-post.php' ) 106 ), 107 self::NONCE_START 108 ); 109 } 110 111 /** 83 112 * "Create a new widget" in the app, with the way back to this page. 84 113 * … … 247 276 248 277 /** 249 * POST: start connecting. Off to BlooTrue with a one-time state. 278 * Start connecting (the button posts, the create links are GET links with 279 * the same nonce). Off to BlooTrue with a one-time state. 250 280 */ 251 281 public static function handle_start() { 252 282 self::guard( self::NONCE_START ); 283 $from = isset( $_REQUEST['from'] ) ? sanitize_key( wp_unslash( $_REQUEST['from'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- checked by guard() above. 284 $campaign = in_array( $from, self::START_FROM, true ) ? 'connect_' . $from : 'connect'; 253 285 $state = wp_generate_password( 32, false, false ); 254 286 update_user_meta( … … 263 295 $url = add_query_arg( 264 296 array_merge( 265 self::utm( 'connect'),297 self::utm( $campaign ), 266 298 array( 267 299 'site' => rawurlencode( self::site() ), -
blootrue-reviews-widget/trunk/readme.txt
r3806314 r3810481 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 38 38 * Edit the design in BlooTrue and your site updates by itself. No re-paste. 39 39 40 **Free plan**: one widget, one review source, unlimited views, the latest 10 reviews from the day the widget is created. Starter ($ 9/month or $84/year) syncs new reviews every day, removes the BlooTrue badge and unlocks every style and animation.40 **Free plan**: one widget, one review source, unlimited views, the latest 10 reviews from the day the widget is created. Starter ($7/month, billed yearly) syncs new reviews every day, removes the BlooTrue badge and unlocks every style and animation. 41 41 42 42 == Installation == … … 117 117 == Changelog == 118 118 119 = 1.3.2 = 120 * “Create a free widget” now connects this site to BlooTrue first (creating your free account if you need one) and brings you back here to add the widget. No code to copy. 121 119 122 = 1.3.1 = 120 123 * When your site is connected to BlooTrue, the plugin tells your account when it is deactivated, activated again or deleted, so the account shows whether it is still on your site. … … 141 144 == Upgrade Notice == 142 145 146 = 1.3.2 = 147 “Create a free widget” connects your site and brings you back to add it. 148 143 149 = 1.3.1 = 144 150 Adds a dismissible review request, 2 days after your first live widget.
Note:
See TracChangeset
for help on using the changeset viewer.