Make WordPress Core

Ticket #48431: 48431.diff

File 48431.diff, 617 bytes (added by chetan200891, 6 years ago)

Created patch.

  • src/wp-admin/includes/class-wp-privacy-policy-content.php

    diff --git a/src/wp-admin/includes/class-wp-privacy-policy-content.php b/src/wp-admin/includes/class-wp-privacy-policy-content.php
    index 030efefe1b..756d40c2c7 100644
    a b final class WP_Privacy_Policy_Content { 
    318318                        return;
    319319                }
    320320
     321                $current_screen = get_current_screen();
     322                if ( 'edit' == $current_screen->base ) {
     323                        return;
     324                }
     325
    321326                $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
    322327
    323328                if ( ! $policy_page_id || $policy_page_id !== $post->ID ) {