Make WordPress Core

Ticket #44006: 44006-2.diff

File 44006-2.diff, 630 bytes (added by subrataemfluence, 6 years ago)

Suffix modified from 'Privacy Policy' to 'Privacy Page'.

  • wp-admin/includes/

    diff --git wp-admin/includes/template.php wp-admin/includes/template-new.php
    index b89a899..642b5ad 100644
    old new function _post_states( $post ) { 
    18991899        }
    19001900
    19011901        /**
     1902         * Adds suffix 'Privacy Policy' for Privacy page.
     1903         */
     1904        if ( '' !== get_option( 'wp_page_for_privacy_policy' ) ) {
     1905                if( intval( get_option( 'wp_page_for_privacy_policy' ) ) === $post->ID ) {
     1906                        $post_states['wp_page_for_privacy_policy'] = __('Privacy Page');
     1907                }
     1908        }
     1909
     1910        /**
    19021911         * Filters the default post display states used in the posts list table.
    19031912         *
    19041913         * @since 2.8.0