Plugin Directory

Changeset 223278


Ignore:
Timestamp:
03/30/2010 04:05:43 PM (16 years ago)
Author:
geraint
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • file-proxy/trunk/com/twothirdsdesign/file-proxy/ttd_file_proxy.php

    r216667 r223278  
    3535        // init options manager
    3636        $this->options = new GcpOptions($this->options_key, $this->_options);
    37        
     37           
    3838        // load localisation
    3939        if( in_array( $pagenow, $local_pages ) )
     
    5555       
    5656        // adds proxy rewrite rule & query_var
    57         add_filter('generate_rewrite_rules', array(&$this,'add_rewrite_rules'));
     57        //add_filter('generate_rewrite_rules', array(&$this,'add_rewrite_rules'));
    5858        add_filter('query_vars', array(&$this, 'query_vars'));
    59         add_filter('wp_redirect', array(&$this, 'test'), 0, 2);
     59        //add_filter('wp_redirect', array(&$this, 'test'), 0, 2);
    6060       
    6161        // intercepts and acts on query_var file-proxy
     
    6565   
    6666   
    67     function test($location, $status){
     67/*  function test($location, $status){
    6868        echo $status . " - " . $location;
    69     }
     69    }   */
    7070   
    7171    function admin(){
     
    120120    function add_rewrite_rules( $wp_rewrite ) {
    121121        $new_rules = array( $this->get_option('url-key').'/?(.+){1,}/?$' => 'index.php?'. $this->get_option('url-key').'='.$wp_rewrite->preg_index(1) );
    122         $new_rules2 = array( 'testing/(.+)/?$' => 'index.php?file=test'.$wp_rewrite->preg_index(1) );
     122        //$new_rules2 = array( 'testing/(.+)/?$' => 'index.php?file=test'.$wp_rewrite->preg_index(1) );
    123123        $wp_rewrite->rules = $new_rules + $new_rules2 + $wp_rewrite->rules;
    124124    }
Note: See TracChangeset for help on using the changeset viewer.