Changeset 603
- Timestamp:
- 01/26/2011 12:17:38 PM (16 months ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/transposh.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh.php
r601 r603 147 147 // full post wrapping (should happen late) 148 148 add_filter('the_content', array(&$this, 'post_content_wrap'), 9999); 149 add_filter('the_excerpt', array(&$this, 'post_content_wrap'), 9999); 149 150 add_filter('the_title', array(&$this, 'post_wrap'), 9999, 2); 150 151 // allow to mark the language? … … 185 186 */ 186 187 function on_wp_redirect($location, $status) { 188 // no point in mangling redirection if its our own or its the default language 187 189 if ($this->transposh_redirect) return $location; 190 if ($this->options->is_default_language($this->target_language)) 191 return $location; 188 192 logger($status . ' ' . $location); 189 193 // $trace = debug_backtrace(); 190 194 // logger($trace); 191 195 // logger($this->target_language); 192 $location = str_replace(array('%2F', '%3A', '%3B', '%3F', '%3D', '%26'), array('/', ':', ';', '?', '=', '&'), urlencode($this->rewrite_url($location)));196 $location = $this->rewrite_url($location); 193 197 return $location; 194 198 }
Note: See TracChangeset
for help on using the changeset viewer.
