Plugin Directory

Changeset 3524081


Ignore:
Timestamp:
05/06/2026 08:31:14 AM (6 months ago)
Author:
yelbaiev
Message:

Release 1.0.3: domain header, friendlier health-check message, optional review prompt

Location:
well-web-notify/trunk
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • well-web-notify/trunk/CHANGELOG.md

    r3492944 r3524081  
    11# 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
    28
    39## Version 1.0.2
  • well-web-notify/trunk/includes/channels/class-discord.php

    r3492944 r3524081  
    4747        $embeds = array(
    4848            array(
    49                 'title'       => get_bloginfo( 'name' ),
     49                'title'       => wellweb_notify_site_domain(),
    5050                'description' => $formatted_body,
    5151                'color'       => 3447003, // Blue
  • well-web-notify/trunk/includes/channels/class-google-chat.php

    r3492944 r3524081  
    4848            array(
    4949                'header' => array(
    50                     'title' => get_bloginfo( 'name' ),
     50                    'title' => wellweb_notify_site_domain(),
    5151                ),
    5252                'sections' => array(
  • well-web-notify/trunk/includes/channels/class-slack.php

    r3492944 r3524081  
    5050                'text' => array(
    5151                    'type' => 'plain_text',
    52                     'text' => get_bloginfo( 'name' ),
     52                    'text' => wellweb_notify_site_domain(),
    5353                ),
    5454            ),
  • well-web-notify/trunk/includes/channels/class-telegram.php

    r3492944 r3524081  
    4848        }
    4949
    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}";
    5151
    5252        // Contact links (Telegram only supports http/https in <a> tags)
  • well-web-notify/trunk/includes/class-health-check.php

    r3492944 r3524081  
    5252        $channels = $manager->get_channels();
    5353
    54         $results = array();
    55         $failures = array();
     54        $results   = array();
     55        $failures  = array();
    5656        $successes = array();
    57         $site_name = get_bloginfo( 'name' );
     57        $domain    = wellweb_notify_site_domain();
    5858        $site_url  = home_url();
    5959        $timestamp = current_time( 'mysql' );
    … …  
    7272            // Send a health check message to the channel
    7373            $check_result = $channel->send(
    74                 __( '✅ Daily Health Check', 'well-web-notify' ),
     74                __( 'Daily health check', 'well-web-notify' ),
    7575                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
    7980                ),
    8081                array( 'form_name' => 'Health Check' )
    … …  
    112113        // Send failure email alert if any channel failed
    113114        if ( ! empty( $failures ) ) {
    114             self::send_failure_email( $failures, $site_name, $site_url, $timestamp );
     115            self::send_failure_email( $failures, $domain, $site_url, $timestamp );
    115116        }
    116117    }
    … …  
    120121     */
    121122    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 );
    123124
    124125        $body = sprintf( "Daily bot health check failed for %s (%s)\n", $site_name, $site_url );
  • well-web-notify/trunk/includes/functions.php

    r3492944 r3524081  
    399399
    400400/**
     401 * Site host without scheme or "www." prefix — used as the notification header.
     402 */
     403function 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/**
    401412 * Build contact link URLs for a normalized phone number.
    402413 *
  • well-web-notify/trunk/readme.txt

    r3492944 r3524081  
    55Tested up to: 6.9
    66Requires PHP: 8.2
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    106106== Changelog ==
    107107
     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
    108113= 1.0.2 =
    109114* Added plugin banners, icons, and screenshots for WordPress.org listing
  • well-web-notify/trunk/well-web-notify.php

    r3492944 r3524081  
    33 * Plugin Name:  Well Web Notify
    44 * Description:  Multi-channel form & order notifications — Telegram, Slack, Discord, Google Chat
    5  * Version: 1.0.2
     5 * Version: 1.0.3
    66 * Author: Well Web Marketing
    77 * Author URI: https://wellweb.marketing/
    … …  
    2121
    2222define( 'WELLWEB_NOTIFY_PLUGIN_FILE', __FILE__ );
    23 define( 'WELLWEB_NOTIFY_VERSION', '1.0.2' );
     23define( 'WELLWEB_NOTIFY_VERSION', '1.0.3' );
    2424define( 'WELLWEB_NOTIFY_DIR', plugin_dir_path( __FILE__ ) );
    2525define( 'WELLWEB_NOTIFY_URL', plugin_dir_url( __FILE__ ) );
    … …  
    6868include WELLWEB_NOTIFY_DIR . 'includes/class-health-check.php';
    6969
     70// WordPress.org review prompt
     71include WELLWEB_NOTIFY_DIR . 'includes/class-review-notice.php';
     72
    7073// Activation / Deactivation
    7174register_activation_hook( __FILE__, 'wellweb_notify_activate' );
    … …  
    7578    WellWeb_Notify_Log::create_table();
    7679    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    }
    7784}
    7885
Note: See TracChangeset for help on using the changeset viewer.