Ticket #26199: 26199.diff
File 26199.diff, 615 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/formatting.php
2831 2831 * @return string Sanitized value. 2832 2832 */ 2833 2833 function sanitize_option($option, $value) { 2834 $original_value = $value; 2834 2835 2835 2836 switch ( $option ) { 2836 2837 case 'admin_email' : … … 2994 2995 break; 2995 2996 } 2996 2997 2997 $value = apply_filters("sanitize_option_{$option}", $value, $option );2998 $value = apply_filters("sanitize_option_{$option}", $value, $option, $original_value); 2998 2999 2999 3000 return $value; 3000 3001 }