Make WordPress Core

Ticket #26199: 26199.3.diff

File 26199.3.diff, 772 bytes (added by MikeHansenMe, 9 years ago)

refreshed for 4.1

  • src/wp-includes/formatting.php

     
    32643264 * @return string Sanitized value.
    32653265 */
    32663266function sanitize_option($option, $value) {
     3267        $original_value = $value;
    32673268
    32683269        switch ( $option ) {
    32693270                case 'admin_email' :
     
    34463447         *
    34473448         * @param string $value  The sanitized option value.
    34483449         * @param string $option The option name.
    3449          */
    3450         $value = apply_filters( "sanitize_option_{$option}", $value, $option );
     3450         * @param string $original_value The original value.
     3451         */     
     3452        $value = apply_filters("sanitize_option_{$option}", $value, $option, $original_value);
    34513453
    34523454        return $value;
    34533455}