Make WordPress Core

Ticket #26199: 26199.4.diff

File 26199.4.diff, 878 bytes (added by MikeHansenMe, 9 years ago)

Refreshed for 4.3

  • src/wp-includes/formatting.php

     
    33253325 * @param string $value The unsanitised value.
    33263326 * @return string Sanitized value.
    33273327 */
    3328 function sanitize_option($option, $value) {
     3328function sanitize_option( $option, $value ) {
    33293329        global $wpdb;
     3330        $original_value = $value;
    33303331
    33313332        switch ( $option ) {
    33323333                case 'admin_email' :
     
    35183519         *
    35193520         * @param string $value  The sanitized option value.
    35203521         * @param string $option The option name.
     3522         * @param string $original_value The original value.
    35213523         */
    3522         $value = apply_filters( "sanitize_option_{$option}", $value, $option );
     3524        $value = apply_filters( "sanitize_option_{$option}", $value, $option, $original_value );
    35233525
    35243526        return $value;
    35253527}