Plugin Directory

Changeset 2549767


Ignore:
Timestamp:
06/17/2021 12:43:32 PM (5 years ago)
Author:
3UU
Message:

optimized .htaccess and bugfix for pages set as front_page

Location:
flexistatic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • flexistatic

    • Property svn:ignore
      •  

        old new  
        1 .git
        2 .gitignore
        3 README.md
        4 ignoring.txt
         1*~
  • flexistatic/trunk/flexistatic.php

    r2440250 r2549767  
    55 * Description:  Make real static posts flexible.
    66 * Author: 3UU
    7  * Version: 2.1.1
     7 * Version: 2.1.2
    88 * Author URI: http://datenverwurstungszentrale.com
    99 * License: MIT
     
    233233    // the blog startpage   
    234234    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');
    237237    // posts
    238238    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  
    22Contributors: 3UU
    33Tags: static page, performance
    4 Requires at least: 4.4
    5 Tested up to: 5.6
    6 Stable tag: 2.1.1
     4Requires at least: 4.9
     5Requires PHP: 7.2
     6Tested up to: 5.7.3
     7Stable tag: 2.1.2
    78License: MIT
    89License URI: http://opensource.org/licenses/mit
     
    9596== Changelog ==
    9697
     98= 2.1.2 =
     99- optimized .htaccess
     100- Bugfix: dont create a static index.html when page is set to front_page
     101
    97102= 2.1.1 =
    98103- works also with parameters (like needed for client side JS) now
Note: See TracChangeset for help on using the changeset viewer.