Ticket #26199: 26199.4.diff
File 26199.4.diff, 878 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/formatting.php
3325 3325 * @param string $value The unsanitised value. 3326 3326 * @return string Sanitized value. 3327 3327 */ 3328 function sanitize_option( $option, $value) {3328 function sanitize_option( $option, $value ) { 3329 3329 global $wpdb; 3330 $original_value = $value; 3330 3331 3331 3332 switch ( $option ) { 3332 3333 case 'admin_email' : … … 3518 3519 * 3519 3520 * @param string $value The sanitized option value. 3520 3521 * @param string $option The option name. 3522 * @param string $original_value The original value. 3521 3523 */ 3522 $value = apply_filters( "sanitize_option_{$option}", $value, $option );3524 $value = apply_filters( "sanitize_option_{$option}", $value, $option, $original_value ); 3523 3525 3524 3526 return $value; 3525 3527 }