From 9a003fc5290152cd7537cad30b57f7d632db01ee Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@17672 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 205d79258..1e5bf4052 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" ); ?>