WordPress.org

Make WordPress Core

Ticket #43545: 43545.8.diff

File 43545.8.diff, 1.5 KB (added by joemcgill, 17 months ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index de978b3b5d..8658aa7529 100644
    All at ###SITENAME### 
    61336133/**
    61346134 * Return an anonymized IPv4 or IPv6 address.
    61356135 *
    6136  * @since 5.0.0 Abstracted from `WP_Community_Events::get_unsafe_client_ip()`.
     6136 * @since 4.9.6 Abstracted from `WP_Community_Events::get_unsafe_client_ip()`.
    61376137 *
    61386138 * @param  string $ip_addr        The IPv4 or IPv6 address to be anonymized.
    61396139 * @param  bool   $ipv6_fallback  Optional. Whether to return the original IPv6 address if the needed functions
    function wp_privacy_anonymize_ip( $ip_addr, $ipv6_fallback = false ) { 
    62036203/**
    62046204 * Return uniform "anonymous" data by type.
    62056205 *
    6206  * @since 5.0.0
     6206 * @since 4.9.6
    62076207 *
    62086208 * @param  string $type The type of data to be anonymized.
    62096209 * @param  string $data Optional The data to be anonymized.
    function wp_privacy_anonymize_data( $type, $data = '' ) { 
    62396239        /**
    62406240         * Filters the anonymous data for each type.
    62416241         *
    6242          * @since 5.0.0
     6242         * @since 4.9.6
    62436243         *
    62446244         * @param string $anonymous Anonymized data.
    62456245         * @param string $type      Type of the data.
    function wp_privacy_anonymize_data( $type, $data = '' ) { 
    62526252 * Trigger the check for policy text changes.
    62536253 *
    62546254 * @since 4.9.6
    6255  * @access private 
     6255 * @access private
    62566256 */
    62576257function _wp_privacy_active_plugins_change() {
    62586258        update_option( '_wp_privacy_text_change_check', 'check' );