Changeset 3524081
- Timestamp:
- 05/06/2026 08:31:14 AM (6 months ago)
- Location:
- well-web-notify/trunk
- Files:
-
- 1 added
- 9 edited
-
CHANGELOG.md (modified) (1 diff)
-
includes/channels/class-discord.php (modified) (1 diff)
-
includes/channels/class-google-chat.php (modified) (1 diff)
-
includes/channels/class-slack.php (modified) (1 diff)
-
includes/channels/class-telegram.php (modified) (1 diff)
-
includes/class-health-check.php (modified) (4 diffs)
-
includes/class-review-notice.php (added)
-
includes/functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
well-web-notify.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
well-web-notify/trunk/CHANGELOG.md
r3492944 r3524081 1 1 # Well Web Notify - Changelog 2 3 ## Version 1.0.3 4 5 - Changed: Notification header now shows the site domain instead of the site title for cleaner chat previews 6 - Changed: Daily health-check message reworded to clearly explain what is being verified 7 - Added: Optional review prompt on the plugin's own admin pages, shown only after at least 14 days of active use 2 8 3 9 ## Version 1.0.2 -
well-web-notify/trunk/includes/channels/class-discord.php
r3492944 r3524081 47 47 $embeds = array( 48 48 array( 49 'title' => get_bloginfo( 'name'),49 'title' => wellweb_notify_site_domain(), 50 50 'description' => $formatted_body, 51 51 'color' => 3447003, // Blue -
well-web-notify/trunk/includes/channels/class-google-chat.php
r3492944 r3524081 48 48 array( 49 49 'header' => array( 50 'title' => get_bloginfo( 'name'),50 'title' => wellweb_notify_site_domain(), 51 51 ), 52 52 'sections' => array( -
well-web-notify/trunk/includes/channels/class-slack.php
r3492944 r3524081 50 50 'text' => array( 51 51 'type' => 'plain_text', 52 'text' => get_bloginfo( 'name'),52 'text' => wellweb_notify_site_domain(), 53 53 ), 54 54 ), -
well-web-notify/trunk/includes/channels/class-telegram.php
r3492944 r3524081 48 48 } 49 49 50 $text = "<b>" . esc_html( get_bloginfo( 'name') ) . "</b>\n\n{$formatted_body}";50 $text = "<b>" . esc_html( wellweb_notify_site_domain() ) . "</b>\n\n{$formatted_body}"; 51 51 52 52 // Contact links (Telegram only supports http/https in <a> tags) -
well-web-notify/trunk/includes/class-health-check.php
r3492944 r3524081 52 52 $channels = $manager->get_channels(); 53 53 54 $results = array();55 $failures = array();54 $results = array(); 55 $failures = array(); 56 56 $successes = array(); 57 $ site_name = get_bloginfo( 'name');57 $domain = wellweb_notify_site_domain(); 58 58 $site_url = home_url(); 59 59 $timestamp = current_time( 'mysql' ); … … 72 72 // Send a health check message to the channel 73 73 $check_result = $channel->send( 74 __( ' ✅ Daily Health Check', 'well-web-notify' ),74 __( 'Daily health check', 'well-web-notify' ), 75 75 sprintf( 76 /* translators: %s: site name */ 77 __( '%s — bot OK', 'well-web-notify' ), 78 $site_name 76 /* translators: 1: channel name e.g. "Telegram", 2: site domain */ 77 __( '%1$s connection is healthy — notifications from %2$s are being delivered.', 'well-web-notify' ), 78 $channel->get_label(), 79 $domain 79 80 ), 80 81 array( 'form_name' => 'Health Check' ) … … 112 113 // Send failure email alert if any channel failed 113 114 if ( ! empty( $failures ) ) { 114 self::send_failure_email( $failures, $ site_name, $site_url, $timestamp );115 self::send_failure_email( $failures, $domain, $site_url, $timestamp ); 115 116 } 116 117 } … … 120 121 */ 121 122 private static function send_failure_email( array $failures, string $site_name, string $site_url, string $timestamp ) { 122 $subject = sprintf( '[Well Web Notify] ⚠️Bot failure on %s', $site_name );123 $subject = sprintf( '[Well Web Notify] Bot failure on %s', $site_name ); 123 124 124 125 $body = sprintf( "Daily bot health check failed for %s (%s)\n", $site_name, $site_url ); -
well-web-notify/trunk/includes/functions.php
r3492944 r3524081 399 399 400 400 /** 401 * Site host without scheme or "www." prefix — used as the notification header. 402 */ 403 function wellweb_notify_site_domain(): string { 404 $host = wp_parse_url( home_url(), PHP_URL_HOST ); 405 if ( ! is_string( $host ) || $host === '' ) { 406 return get_bloginfo( 'name' ); 407 } 408 return preg_replace( '/^www\./i', '', $host ); 409 } 410 411 /** 401 412 * Build contact link URLs for a normalized phone number. 402 413 * -
well-web-notify/trunk/readme.txt
r3492944 r3524081 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.2 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 106 106 == Changelog == 107 107 108 = 1.0.3 = 109 * Notification header now shows the site domain instead of the site title for cleaner chat previews 110 * Daily health-check message reworded to clearly explain what is being verified 111 * Optional review prompt on the plugin's own admin pages, shown only after the plugin has been in active use 112 108 113 = 1.0.2 = 109 114 * Added plugin banners, icons, and screenshots for WordPress.org listing -
well-web-notify/trunk/well-web-notify.php
r3492944 r3524081 3 3 * Plugin Name: Well Web Notify 4 4 * Description: Multi-channel form & order notifications — Telegram, Slack, Discord, Google Chat 5 * Version: 1.0. 25 * Version: 1.0.3 6 6 * Author: Well Web Marketing 7 7 * Author URI: https://wellweb.marketing/ … … 21 21 22 22 define( 'WELLWEB_NOTIFY_PLUGIN_FILE', __FILE__ ); 23 define( 'WELLWEB_NOTIFY_VERSION', '1.0. 2' );23 define( 'WELLWEB_NOTIFY_VERSION', '1.0.3' ); 24 24 define( 'WELLWEB_NOTIFY_DIR', plugin_dir_path( __FILE__ ) ); 25 25 define( 'WELLWEB_NOTIFY_URL', plugin_dir_url( __FILE__ ) ); … … 68 68 include WELLWEB_NOTIFY_DIR . 'includes/class-health-check.php'; 69 69 70 // WordPress.org review prompt 71 include WELLWEB_NOTIFY_DIR . 'includes/class-review-notice.php'; 72 70 73 // Activation / Deactivation 71 74 register_activation_hook( __FILE__, 'wellweb_notify_activate' ); … … 75 78 WellWeb_Notify_Log::create_table(); 76 79 WellWeb_Notify_Site_Verify::get_site_token(); // Generate token on first activation 80 81 if ( ! get_option( WellWeb_Notify_Review_Notice::OPTION_ACTIVATION_DATE ) ) { 82 update_option( WellWeb_Notify_Review_Notice::OPTION_ACTIVATION_DATE, time(), false ); 83 } 77 84 } 78 85
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)