From 3c6648e96caf25d850742e917ff688237c3aef3f Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 4 Oct 2006 11:28:38 +0000 Subject: [PATCH] preserve multi-line options in options.php. Props Viper007Bond. fixes #2456 git-svn-id: http://svn.automattic.com/wordpress/trunk@4330 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options.php | 9 +++++++-- wp-admin/wp-admin.css | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/wp-admin/options.php b/wp-admin/options.php index 48228810d..4297bd45b 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -116,7 +116,7 @@ default:

-
+ @@ -128,7 +128,12 @@ foreach ($options as $option) : echo " - +"; endforeach; diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index bf3ff8eb9..7c297241d 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -400,6 +400,10 @@ table .vers { text-align: center; } +#all-options textarea, #all-options input { + width: 250px; +} + #adminmenu { background: #83B4D8; border-top: 3px solid #448abd;
"; + + if (stristr($value, "\n")) echo ""; + else echo ""; + + echo " $option->option_description