Plugin Directory

Changeset 1173861

Timestamp:
06/03/2015 07:13:09 PM (9 years ago)
Author:
dougal
Message:

Version 1.4 - Re-enabling URL 'filter' querystring param.

Location:
text-filter-suite/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • text-filter-suite/trunk/readme.txt

    r992277 r1173861  
    44Tags: content, comments, filters, fun, funny, humor, pirates, talklikeapirate, talk like a pirate, pirate day
    55Requires at least: 1.5
    6 Tested up to: 4.0
     6Tested up to: 4.
    77Stable tag: 1.3
    88
     
    102102
    103103== Changelog ==
     104
     105
     106
     107
    104108= 1.3 - 2012-09-18 =
    105109* Fixed PHP opening shorttag in tfs-acroymit.php
  • text-filter-suite/trunk/tfs-core.php

    r600718 r1173861  
    66 * Author: Dougal Campbell
    77 * Author URI: http://dougal.gunters.org/
    8  * Version: 1.3
     8 * Version: 1.
    99 * License: GPL2, GPL3
    1010 *
     
    4545 *   heavily on a site with a lot of traffic, caching might be a good idea.
    4646 */
     47
     48
     49
     50
     51
     52
     53
    4754
    4855// An idea from Simon Willison (http://simon.incutio.com/)
     
    105112
    106113function tfs_init() {
     114
     115
    107116    // Don't filter feeds, it causes headaches.
    108117    if ( is_feed() ) {
     
    115124    add_filter('comment_text','tfs_comment_filter');
    116125
    117 /*
     126
    118127    // Using REQUEST so that you could set the filter in
    119128    // a cookie, for persistence, if you wanted.
    120129    $filtname = $_REQUEST['filter'];
    121130
    122     if (function_exists($filtname)) {
     131    if (function_exists($filtname) &&
     132      in_array($filtname, $tfs_allowed_funcs)) {
    123133        add_filter('category_description',$filtname);
    124134        add_filter('comment_author',$filtname);
     
    131141        add_filter('list_cats',$filtname);
    132142    }
    133 */
     143
    134144}
    135145
Note: See TracChangeset for help on using the changeset viewer.