Make WordPress Core

Ticket #44876: 44876.patch

File 44876.patch, 1.1 KB (added by mukesh27, 5 years ago)

Try this patch to remove query string for privacy policy page.

  • misc.php

    diff -Naur old/misc.php new/misc.php
    old new  
    13851385                                printf(
    13861386                                        /* translators: %s: Privacy Policy Guide URL */
    13871387                                        __( 'The suggested privacy policy text has changed. Please <a href="%s">review the guide</a> and update your privacy policy.' ),
    1388                                         esc_url( admin_url( 'tools.php?wp-privacy-policy-guide=1' ) )
     1388                                        esc_url( admin_url( 'tools.php?wp-privacy-policy-guide' ) )
    13891389                                );
    13901390                        ?></p>
    13911391                </div>
     
    15651565                        /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
    15661566                        printf(
    15671567                                __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
    1568                                 admin_url( 'tools.php?wp-privacy-policy-guide=1' ),
     1568                                admin_url( 'tools.php?wp-privacy-policy-guide' ),
    15691569                                'target="_blank"',
    15701570                                sprintf(
    15711571                                        '<span class="screen-reader-text"> %s</span>',