WordPress.org

Make WordPress Core

Ticket #49153: 49153.patch

File 49153.patch, 447 bytes (added by wpamitkumar, 23 months ago)
  • src/wp-includes/class-wp-post.php

    diff --git a/src/wp-includes/class-wp-post.php b/src/wp-includes/class-wp-post.php
    index a64a0d346f..c1482b3d72 100644
    a b final class WP_Post { 
    339339                        $value = get_post_meta( $this->ID, $key, true );
    340340                }
    341341
    342                 if ( $this->filter ) {
     342                if ( ! empty( $this->filter ) ) {
    343343                        $value = sanitize_post_field( $key, $value, $this->ID, $this->filter );
    344344                }
    345345