Make WordPress Core

Ticket #26199: 26199.2.diff

File 26199.2.diff, 772 bytes (added by simonwheatley, 10 years ago)

Refreshed for 4.0a trunk

  • src/wp-includes/formatting.php

     
    31863186 * @return string Sanitized value.
    31873187 */
    31883188function sanitize_option($option, $value) {
     3189        $original_value = $value;
    31893190
    31903191        switch ( $option ) {
    31913192                case 'admin_email' :
     
    33643365         *
    33653366         * @param string $value  The sanitized option value.
    33663367         * @param string $option The option name.
    3367          */
    3368         $value = apply_filters( "sanitize_option_{$option}", $value, $option );
     3368         * @param string $original_value The original value.
     3369         */     
     3370        $value = apply_filters("sanitize_option_{$option}", $value, $option, $original_value);
    33693371
    33703372        return $value;
    33713373}