WordPress.org

Make WordPress Core

Changeset 50374


Ignore:
Timestamp:
02/17/2021 12:43:26 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Privacy: Suggest wp_add_privacy_policy_content() as an alternative for the deprecated wp_get_default_privacy_policy_content hook.

Follow-up to [50161].

See #49264.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r50161 r50374  
    670670         * @since 4.9.6
    671671         * @since 5.0.0 Added the `$strings`, `$description`, and `$blocks` parameters.
    672          *
    673          * @deprecated 5.7.0 This filter has been deprecated.
     672         * @deprecated 5.7.0 Use wp_add_privacy_policy_content() instead.
    674673         *
    675674         * @param string   $content     The default policy content.
     
    678677         * @param bool     $blocks      Whether the content should be formatted for the block editor.
    679678         */
    680         return apply_filters_deprecated( 'wp_get_default_privacy_policy_content', array( $content, $strings, $description, $blocks ), '5.7.0', false );
     679        return apply_filters_deprecated(
     680            'wp_get_default_privacy_policy_content',
     681            array( $content, $strings, $description, $blocks ),
     682            '5.7.0',
     683            'wp_add_privacy_policy_content()'
     684        );
    681685    }
    682686
Note: See TracChangeset for help on using the changeset viewer.