Changeset 3442782
- Timestamp:
- 01/19/2026 07:53:47 PM (2 months ago)
- Location:
- static-porter/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
static-porter.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
static-porter/trunk/readme.txt
r3442769 r3442782 1 1 === Static Porter === 2 Contributors: K AYIHAN TURGUTOGLU, KAYA TURK2 Contributors: Kayıhan Turgutoğlu, Kaya Turk 3 3 Donate link: https://www.paypal.me/kturgutoglu 4 4 Tags: static, cache, performance, speed, optimization … … 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.0 8 Stable tag: 3.5. 48 Stable tag: 3.5.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Upgrade Notice == 50 50 51 = 3.5. 4=52 This version introduces the new professional "Porter" branding, optimized UI, and a faster 5-second auto-refresh after crawling. Highly recommended for all users.51 = 3.5.5 = 52 This version correctly outputs the verification message as an HTML comment on the first line of static pages. 53 53 54 54 == Changelog == 55 55 = 3.5.5 = 56 * **HTML Attribution Fix:** Correctly outputs the verification message as an HTML comment on the first line of static pages. 56 57 = 3.5.4 = 57 58 * **New Icon:** Updated plugin branding to a professional "Porter/Package" box icon. -
static-porter/trunk/static-porter.php
r3442759 r3442782 3 3 * Plugin Name: Static Porter 4 4 * Description: High-performance static site generator with optional Gzip, Minification, Security Headers, and Cache-Control settings. 5 * Version: 3.5. 46 * Author: K AYIHAN TURGUTOGLU, KAYA TURK5 * Version: 3.5.5 6 * Author: Kayıhan Turgutoğlu, Kaya Turk 7 7 * License: GPLv2 or later 8 8 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 316 316 } 317 317 $processed_msg = str_replace(['{version}', '{timestamp}'], [STATIC_PORTER_VERSION, current_time('mysql')], $msg_template); 318 $attribution = "\n"; 319 $html = $attribution . ltrim($html); 318 $attribution = "<!-- " . esc_html($processed_msg) . " -->\n"; 319 320 if (stripos($html, '<!DOCTYPE') === 0) { 321 $html = preg_replace('/^<!DOCTYPE[^>]*>\s*/i', '$0' . $attribution, $html, 1); 322 } else { 323 $html = $attribution . ltrim($html); 324 } 325 320 326 } 321 327
Note: See TracChangeset
for help on using the changeset viewer.