Changeset 2549767
- Timestamp:
- 06/17/2021 12:43:32 PM (5 years ago)
- Location:
- flexistatic
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
trunk/flexistatic.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flexistatic
- Property svn:ignore
-
old new 1 .git 2 .gitignore 3 README.md 4 ignoring.txt 1 *~
-
- Property svn:ignore
-
flexistatic/trunk/flexistatic.php
r2440250 r2549767 5 5 * Description: Make real static posts flexible. 6 6 * Author: 3UU 7 * Version: 2.1. 17 * Version: 2.1.2 8 8 * Author URI: http://datenverwurstungszentrale.com 9 9 * License: MIT … … 233 233 // the blog startpage 234 234 if($static3uu_post_ID == '0') $fsfile = $_SERVER['DOCUMENT_ROOT'].wp_make_link_relative(get_site_url()).'/'.$_SERVER["HTTP_HOST"].'.html'; 235 // pages 236 elseif( get_post_type($static3uu_post_ID)=='page') $fsfile=$_SERVER['DOCUMENT_ROOT'].wp_make_link_relative(get_permalink($static3uu_post_ID).'/index.html');235 // pages (BUT dont if page is set as WP static frontpage) 236 elseif((get_post_type($static3uu_post_ID)=='page') && ( get_option('page_on_front') != $static3uu_post_ID ) ) $fsfile=$_SERVER['DOCUMENT_ROOT'].wp_make_link_relative(get_permalink($static3uu_post_ID).'/index.html'); 237 237 // posts 238 238 elseif(get_post_type($static3uu_post_ID)=='post') $fsfile = $_SERVER['DOCUMENT_ROOT'].wp_make_link_relative(get_permalink($static3uu_post_ID)); -
flexistatic/trunk/readme.txt
r2440254 r2549767 2 2 Contributors: 3UU 3 3 Tags: static page, performance 4 Requires at least: 4.4 5 Tested up to: 5.6 6 Stable tag: 2.1.1 4 Requires at least: 4.9 5 Requires PHP: 7.2 6 Tested up to: 5.7.3 7 Stable tag: 2.1.2 7 8 License: MIT 8 9 License URI: http://opensource.org/licenses/mit … … 95 96 == Changelog == 96 97 98 = 2.1.2 = 99 - optimized .htaccess 100 - Bugfix: dont create a static index.html when page is set to front_page 101 97 102 = 2.1.1 = 98 103 - works also with parameters (like needed for client side JS) now
Note: See TracChangeset
for help on using the changeset viewer.