diff --git a/functions.php b/functions.php index 9f5e962..f5b0793 100644 --- a/functions.php +++ b/functions.php @@ -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)) {