WordPress.org

Make WordPress Core

Ticket #37310: class-wp-term.php.diff

File class-wp-term.php.diff, 494 bytes (added by minkapi, 4 years ago)
  • wp-includes/class-wp-term.php

     
    251251
    252252                                return sanitize_term( $data, $data->taxonomy, 'raw' );
    253253                                break;
     254
     255                        default :
     256                                $value = get_term_meta( $this->term_id, $key, true );
     257                                return sanitize_term_field( $key, $value, $this->term_id, $this->taxonomy, $this->filter );
    254258                }
    255259        }
    256260}