From 527965ab2496a43539b52c19e870daad37f7d5a6 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 21 Apr 2011 07:43:25 +0000 Subject: [PATCH] Provide more arguments to the widgets on the 404 page so as to avoid notices. See #17198 git-svn-id: https://develop.svn.wordpress.org/trunk@17672 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyeleven/404.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyeleven/404.php b/wp-content/themes/twentyeleven/404.php index 205d79258e..1e5bf40524 100644 --- a/wp-content/themes/twentyeleven/404.php +++ b/wp-content/themes/twentyeleven/404.php @@ -19,7 +19,7 @@ get_header(); ?> - + 10 ), array( 'widget_id' => '404' ) ); ?>

@@ -30,7 +30,7 @@ get_header(); ?> ' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '

'; - the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$archive_content" ); + the_widget( 'WP_Widget_Archives', array('count' => 0 , 'dropdown' => 1 ), "after_title=$archive_content" ); ?>