[wp-hackers] Option Idea
Ryan Boren
ryan at boren.nu
Thu Jun 24 00:52:22 UTC 2004
On Wed, 2004-06-23 at 12:44, Matt Mullenweg wrote:
> update_option() should check the value and not execute a query if the
> current is == to the updated. Just emailing this thought to the list
> because I'll forget it otherwise.
Like so?
diff -r1.126 functions.php
322a323,328
>
> // If the new and old values are the same, no need to update.
> if ($newvalue == get_settings($option_name)) {
> return true;
> }
>
More information about the hackers
mailing list