diff --git a/index.php b/index.php index 5d7c4ad..2a9a36b 100644 --- a/index.php +++ b/index.php @@ -12,13 +12,13 @@ comicpress_display_post(); endwhile; } - Restore(); - UnProtect(); + Restore(); + UnProtect(); wp_reset_query(); ?> - diff --git a/test/fixtures/destroy-widgets.inc b/test/fixtures/destroy-widgets.inc deleted file mode 100644 index 228d5f6..0000000 --- a/test/fixtures/destroy-widgets.inc +++ /dev/null @@ -1,3 +0,0 @@ -option('sidebars_widgets', array()); diff --git a/test/selenium/TestWidgetInitIsCorrect.html b/test/selenium/TestWidgetInitIsCorrect.html deleted file mode 100644 index 35803f1..0000000 --- a/test/selenium/TestWidgetInitIsCorrect.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - -TestWidgetInitIsCorrect - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TestWidgetInitIsCorrect
open/wp-admin/
clickAndWaitlink=Post Fixtures
clicklink=themes/comicpress-2.8/test/fixtures/destroy-widgets.inc
clickpf[is_ok]
clickAndWait//input[@value='Load Provided Data']
assertTextPresentNew data set loaded into WordPress.
clickAndWaitsite-visit-button
assertElementNotPresent//script[contains(text(), 'var image_root')]
open/wp-admin/
- - diff --git a/widgets/BookmarkWidget.inc b/widgets/BookmarkWidget.inc index 9ca4a25..5327d6f 100644 --- a/widgets/BookmarkWidget.inc +++ b/widgets/BookmarkWidget.inc @@ -45,11 +45,12 @@ class ComicPressBookmarkWidget extends WP_Widget { ); } - function init() {} + function init() { + add_action('wp_head', array(&$this, 'wp_head')); + } function is_active() { - add_action('wp_head', array(&$this, 'wp_head')); - add_action('template_redirect', array(&$this, 'template_redirect')); + add_action('template_redirect', array(&$this, 'template_redirect')); } function template_redirect() {