clean up functions.php

This commit is contained in:
John Bintz 2009-12-04 22:35:49 -05:00
parent 1cb662d6e6
commit 06a765ad55
1 changed files with 2 additions and 12 deletions

View File

@ -18,18 +18,6 @@ function __comicpress_widgets_init() {
}
closedir($dh);
}
if (isset($_REQUEST['cp'])) {
if (is_array($_REQUEST['cp'])) {
if (isset($_REQUEST['cp']['post_id'])) {
if (($_REQUEST['cp']['post_id'] <= 0) && ($_POST['post_ID'] > 0)) {
$_REQUEST['cp']['post_id'] = $_POST['post_ID'];
}
}
}
}
do_action('comicpress_init');
}
function __comicpress_init() {
@ -52,6 +40,8 @@ function __comicpress_init() {
remove_filter('comments_number','id_get_comment_number');
}
do_action('comicpress_init');
if (isset($_REQUEST['cp'])) {
if (is_array($_REQUEST['cp'])) {
if (($_REQUEST['cp']['post_id'] <= 0) && ($_POST['post_ID'] > 0)) {