WordPress.org

Make WordPress Core

Ticket #31264: 31264.diff

File 31264.diff, 709 bytes (added by pento, 7 years ago)
  • src/wp-includes/formatting.php

     
    32663266function sanitize_option($option, $value) {
    32673267        global $wpdb;
    32683268
     3269        /**
     3270         * Before an option is sanitized, it can be escaped or modified to pass
     3271         * any sanity checking it may otherwise have failed.
     3272         *
     3273         * @version 4.2.0
     3274         *
     3275         * @param mixed $value The unsanitized value.
     3276         * @param string $option The name of the option.
     3277         */
     3278        $value = apply_filters( 'pre_sanitize_option', $value, $option );
     3279
    32693280        switch ( $option ) {
    32703281                case 'admin_email' :
    32713282                case 'new_admin_email' :