WordPress.org

Make WordPress Core

Ticket #35316: 35316.patch

File 35316.patch, 504 bytes (added by ocean90, 4 years ago)
  • src/wp-admin/includes/image.php

     
    408408                }
    409409        }
    410410
     411        foreach ( $meta['keywords'] as $key => $keyword ) {
     412                if ( ! seems_utf8( $keyword ) ) {
     413                        $meta['keywords'][ $key ] = utf8_encode( $keyword );
     414                }
     415        }
     416
    411417        foreach ( $meta as &$value ) {
    412418                if ( is_string( $value ) ) {
    413419                        $value = wp_kses_post( $value );