: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if ( $is_safari || $is_chrome ) {
echo ' autocomplete="off"';
* Display JavaScript on the page.
function options_permalink_add_js() {
<script type="text/javascript">
jQuery('.permalink-structure input:radio').change(function() {
if ( 'custom' == this.value )
jQuery('#permalink_structure').val( this.value );
jQuery( '#permalink_structure' ).on( 'click input', function() {
jQuery( '#custom_selection' ).prop( 'checked', true );
* Previous class for list table for privacy data export requests.
class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Data_Export_Requests_List_Table {
function __construct( $args ) {
_deprecated_function( __CLASS__, '5.3.0', 'WP_Privacy_Data_Export_Requests_List_Table' );
if ( ! isset( $args['screen'] ) || $args['screen'] === 'export_personal_data' ) {
$args['screen'] = 'export-personal-data';
parent::__construct( $args );
* Previous class for list table for privacy data erasure requests.
class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Data_Removal_Requests_List_Table {
function __construct( $args ) {
_deprecated_function( __CLASS__, '5.3.0', 'WP_Privacy_Data_Removal_Requests_List_Table' );
if ( ! isset( $args['screen'] ) || $args['screen'] === 'remove_personal_data' ) {
$args['screen'] = 'erase-personal-data';
parent::__construct( $args );
* Was used to add options for the privacy requests screens before they were separate files.
function _wp_privacy_requests_screen_options() {
_deprecated_function( __FUNCTION__, '5.3.0' );
* Was used to filter input from media_upload_form_handler() and to assign a default
* post_title from the file name if none supplied.
* @param array $post The WP_Post attachment object converted to an array.
* @param array $attachment An array of attachment metadata.
* @return array Attachment post object converted to an array.
function image_attachment_fields_to_save( $post, $attachment ) {
_deprecated_function( __FUNCTION__, '6.0.0' );