Plugin Directory

Changeset 3256721


Ignore:
Timestamp:
03/16/2025 06:00:33 PM (13 months ago)
Author:
petro64
Message:

Version 1.6

Location:
tg-instantview
Files:
1 added
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • tg-instantview/tags/1.6/readme.txt

    r3256720 r3256721  
    44Requires at least: 5.0
    55Tested up to: 6.6
    6 Stable tag: 1.5
     6Stable tag: 1.6
    77Requires PHP: 7.0
    88License: GPLv3
     
    5656== Changelog ==
    5757
     58= 1.6 =
     59* Fixes warning in log, if request does not contain User-Agent header
     60
    5861= 1.5 =
    5962* Fixes issues related with images Lazy-load, that may break IV layout
  • tg-instantview/tags/1.6/tg-instantview.php

    r3256720 r3256721  
    44Plugin URI: https://github.com/petrows/wp-tg-instantview
    55Description: Triggers Telegram InstantView for posts
    6 Version: 1.5
     6Version: 1.6
    77Author: Petro
    88Author URI: https://petro.ws/
     
    148148    }
    149149
     150    $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
     151
    150152    if (
    151153        // This is Telegram Bot coming?
    152         'TelegramBot (like TwitterBot)' == $_SERVER['HTTP_USER_AGENT']
     154        'TelegramBot (like TwitterBot)' == $user_agent
    153155        ||
    154156        // ... or use '?tg-instantview=1' for testing
  • tg-instantview/trunk/readme.txt

    r3178352 r3256721  
    44Requires at least: 5.0
    55Tested up to: 6.6
    6 Stable tag: 1.5
     6Stable tag: 1.6
    77Requires PHP: 7.0
    88License: GPLv3
     
    5656== Changelog ==
    5757
     58= 1.6 =
     59* Fixes warning in log, if request does not contain User-Agent header
     60
    5861= 1.5 =
    5962* Fixes issues related with images Lazy-load, that may break IV layout
  • tg-instantview/trunk/tg-instantview.php

    r3178932 r3256721  
    44Plugin URI: https://github.com/petrows/wp-tg-instantview
    55Description: Triggers Telegram InstantView for posts
    6 Version: 1.5
     6Version: 1.6
    77Author: Petro
    88Author URI: https://petro.ws/
     
    148148    }
    149149
     150    $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
     151
    150152    if (
    151153        // This is Telegram Bot coming?
    152         'TelegramBot (like TwitterBot)' == $_SERVER['HTTP_USER_AGENT']
     154        'TelegramBot (like TwitterBot)' == $user_agent
    153155        ||
    154156        // ... or use '?tg-instantview=1' for testing
Note: See TracChangeset for help on using the changeset viewer.