Make WordPress Core

Changeset 55263


Ignore:
Timestamp:
02/07/2023 02:38:39 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/erase-personal-data.php

    r53182 r55263  
    1313        wp_die( __( 'Sorry, you are not allowed to erase personal data on this site.' ) );
    1414}
     15
     16// Used in the HTML title tag.
     17$title = __( 'Erase Personal Data' );
    1518
    1619// Contextual help - choose Help on the top right of admin panel to preview this.
  • trunk/src/wp-admin/export-personal-data.php

    r53182 r55263  
    1313        wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) );
    1414}
     15
     16// Used in the HTML title tag.
     17$title = __( 'Export Personal Data' );
    1518
    1619// Contextual help - choose Help on the top right of admin panel to preview this.
  • trunk/src/wp-admin/options-privacy.php

    r55082 r55263  
    1818        return;
    1919}
     20
     21// Used in the HTML title tag.
     22$title = __( 'Privacy' );
    2023
    2124add_filter(
  • trunk/src/wp-admin/privacy-policy-guide.php

    r53131 r55263  
    1717        include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    1818}
     19
     20// Used in the HTML title tag.
     21$title = __( 'Privacy Policy Guide' );
    1922
    2023add_filter(
Note: See TracChangeset for help on using the changeset viewer.