Skip to content

Commit

Permalink
3.2.9.9.3 REDIRECT_STATUS handling
Browse files Browse the repository at this point in the history
  • Loading branch information
johnclause committed Apr 18, 2015
1 parent c4f8aec commit 8dcefd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qtranslate_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,6 @@ function qtranxf_can_redirect() {
return !defined('WP_ADMIN') && !defined('DOING_AJAX') && !defined('WP_CLI') && !defined('DOING_CRON') && empty($_POST)
//'REDIRECT_*' needs more testing
//&& !isset($_SERVER['REDIRECT_URL'])
//&& (!isset($_SERVER['REDIRECT_STATUS']) || $_SERVER['REDIRECT_STATUS']=='200')
&& (!isset($_SERVER['REDIRECT_STATUS']) || $_SERVER['REDIRECT_STATUS']=='200')
;
}
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Developers: please drop new topics here, the text will be moved to [qTranslate-X
* Enhancement: improved report messages for action 'markdefault'.
* Enhancement: improved messages in column "Language" of post listing pages.
* Translation: German (de_DE) po/mo files updated. Thanks to Robert Skiba.
* Enhancement: another attempt to check `REDIRECT_STATUS` in function `qtranxf_can_redirect` to prevent unnecessary redirection if `mod_rewrite` is already doing redirection. In particular, this should help to troubleshoot internal server error as it was observed in [Issue #96](https://github.com/qTranslate-Team/qtranslate-x/issues/96).

### 3.2.9.9.2 alpha ###
* Fix: troublesome use of deprecated function `mysql_real_escape_string` is removed: [WP Topic](https://wordpress.org/support/topic/bulk-remove-language).
Expand Down

0 comments on commit 8dcefd6

Please sign in to comment.