non-javascript redirection

This commit is contained in:
John Bintz 2009-12-14 21:44:45 -05:00
parent 200a89bd93
commit cc516694ef
1 changed files with 4 additions and 2 deletions

View File

@ -26,8 +26,8 @@ class ArchiveDropdownWidget extends WP_Widget {
function _verify_nonce() { return __comicpress_verify_nonce(); }
function template_redirect() {
if ($this->_verify_nonce() == 'follow-archive-dropdown') {
if (ArchiveDropdownWidget::_verify_nonce() == 'follow-archive-dropdown') {
wp_redirect($_GET['cp']['urls']);
}
}
@ -199,3 +199,5 @@ class ArchiveDropdownWidget extends WP_Widget {
<?php }
}
}
add_action('template_redirect', array('ArchiveDropdownWidget', 'template_redirect'));