[wp-cvs] wordpress/wp-admin options.php,1.22,1.23

Joseph Scott joseph at randomnetworks.com
Sat Jun 12 12:28:17 CDT 2004


On Jun 10, 2004, at 2:48 AM, Matthew Mullenweg wrote:

> Update of /cvsroot/cafelog/wordpress/wp-admin
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29155/wp-admin
>
> Modified Files:
> 	options.php
> Log Message:
> J. Scott's fix pretty majorly broke options. Rolback.
>

	Hmmm, sorry about that.  Any ideas why checking to see if the value is 
set caused problems?


> Index: options.php
> ===================================================================
> RCS file: /cvsroot/cafelog/wordpress/wp-admin/options.php,v
> retrieving revision 1.22
> retrieving revision 1.23
> diff -C2 -d -r1.22 -r1.23
> *** options.php	1 Jun 2004 10:01:15 -0000	1.22
> --- options.php	10 Jun 2004 09:48:13 -0000	1.23
> ***************
> *** 75,79 ****
>               if ($user_level >= $option->option_admin_level) {
>                   $old_val = stripslashes($option->option_value);
> !                 if(isset($_POST[$option->option_name])) $new_val = 
> $_POST[$option->option_name];
>   				if (!$new_val) {
>   					if (3 == $option->option_type)
> --- 75,79 ----
>               if ($user_level >= $option->option_admin_level) {
>                   $old_val = stripslashes($option->option_value);
> !                 $new_val = $_POST[$option->option_name];
>   				if (!$new_val) {
>   					if (3 == $option->option_type)
>
>
> _______________________________________________
> cvs mailing list
> cvs at wordpress.org
> http://wordpress.org/mailman/listinfo/cvs_wordpress.org
> http://wordpress.org/
>

--
Joseph Scott
http://joseph.randomnetworks.com/




More information about the cvs mailing list