Administration: Define the $title global on privacy screens.

This brings more consistency with other screens and avoids a PHP warning in `get_plugin_page_hookname()`:
{{{
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
}}}

Props ipajen, jrf, SergeyBiryukov.
Fixes #57578.
Built from https://develop.svn.wordpress.org/trunk@55263


git-svn-id: http://core.svn.wordpress.org/trunk@54796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2023-02-07 14:40:21 +00:00
parent 2b1840d393
commit 8702927f8d
5 changed files with 13 additions and 1 deletions

View File

@@ -17,6 +17,9 @@ if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
}
// Used in the HTML title tag.
$title = __( 'Privacy Policy Guide' );
add_filter(
'admin_body_class',
static function( $body_class ) {