Plugin Directory

Changeset 2059104


Ignore:
Timestamp:
03/28/2019 04:54:34 PM (7 years ago)
Author:
kpgraham
Message:

Minor bug when missing yyyy/mm archive was not located correctly or had a missing index file.

Location:
permalink-finder
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • permalink-finder/trunk/includes/pf-404.php

    r2027478 r2059104  
    55
    66// Guts of the plugin. This is where we do the redirect. We are already in a 404 before we get here.
    7 function kpg_permalink_fixer() {
     7function kpg_permalink_fixer() {   
    88    $options=kpg_pf_get_options();
    99    extract($options);
     
    280280            return;
    281281        }
     282    }
     283    // new with this version. found missing yyyy/mm configuration.
     284   
     285    if (substr($plink,strlen($plink)-3,1)=='/') {
     286        // assume archive - lets get out of here now.
     287        wp_redirect($flink.$query,301); // let wp do it - more compatable.
     288        exit();
    282289    }
    283290
  • permalink-finder/trunk/readme.txt

    r2027478 r2059104  
    3737
    3838== Changelog ==
     39
     40= 2.7 =
     41* Minor bug where it was not finding yyyy/mm archives when missing, but file was located somewhere else.
    3942
    4043= 2.6 =
Note: See TracChangeset for help on using the changeset viewer.