Changeset 3256721
- Timestamp:
- 03/16/2025 06:00:33 PM (13 months ago)
- Location:
- tg-instantview
- Files:
-
- 1 added
- 2 edited
- 4 copied
-
tags/1.6 (added)
-
tags/1.6/readme.txt (copied) (copied from tg-instantview/trunk/readme.txt) (2 diffs)
-
tags/1.6/tg-admin.php (copied) (copied from tg-instantview/trunk/tg-admin.php)
-
tags/1.6/tg-display.php (copied) (copied from tg-instantview/trunk/tg-display.php)
-
tags/1.6/tg-instantview.php (copied) (copied from tg-instantview/trunk/tg-instantview.php) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tg-instantview.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tg-instantview/tags/1.6/readme.txt
r3256720 r3256721 4 4 Requires at least: 5.0 5 5 Tested up to: 6.6 6 Stable tag: 1. 56 Stable tag: 1.6 7 7 Requires PHP: 7.0 8 8 License: GPLv3 … … 56 56 == Changelog == 57 57 58 = 1.6 = 59 * Fixes warning in log, if request does not contain User-Agent header 60 58 61 = 1.5 = 59 62 * Fixes issues related with images Lazy-load, that may break IV layout -
tg-instantview/tags/1.6/tg-instantview.php
r3256720 r3256721 4 4 Plugin URI: https://github.com/petrows/wp-tg-instantview 5 5 Description: Triggers Telegram InstantView for posts 6 Version: 1. 56 Version: 1.6 7 7 Author: Petro 8 8 Author URI: https://petro.ws/ … … 148 148 } 149 149 150 $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; 151 150 152 if ( 151 153 // This is Telegram Bot coming? 152 'TelegramBot (like TwitterBot)' == $ _SERVER['HTTP_USER_AGENT']154 'TelegramBot (like TwitterBot)' == $user_agent 153 155 || 154 156 // ... or use '?tg-instantview=1' for testing -
tg-instantview/trunk/readme.txt
r3178352 r3256721 4 4 Requires at least: 5.0 5 5 Tested up to: 6.6 6 Stable tag: 1. 56 Stable tag: 1.6 7 7 Requires PHP: 7.0 8 8 License: GPLv3 … … 56 56 == Changelog == 57 57 58 = 1.6 = 59 * Fixes warning in log, if request does not contain User-Agent header 60 58 61 = 1.5 = 59 62 * Fixes issues related with images Lazy-load, that may break IV layout -
tg-instantview/trunk/tg-instantview.php
r3178932 r3256721 4 4 Plugin URI: https://github.com/petrows/wp-tg-instantview 5 5 Description: Triggers Telegram InstantView for posts 6 Version: 1. 56 Version: 1.6 7 7 Author: Petro 8 8 Author URI: https://petro.ws/ … … 148 148 } 149 149 150 $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; 151 150 152 if ( 151 153 // This is Telegram Bot coming? 152 'TelegramBot (like TwitterBot)' == $ _SERVER['HTTP_USER_AGENT']154 'TelegramBot (like TwitterBot)' == $user_agent 153 155 || 154 156 // ... or use '?tg-instantview=1' for testing
Note: See TracChangeset
for help on using the changeset viewer.