: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
* Sanitizes the parameters that have been sent.
* @return array The sanitized fields.
function yoast_free_bulk_sanitize_input_fields() {
foreach ( $possible_params as $param_name ) {
if ( isset( $_GET[ $param_name ] ) ) {
$input_get[ $param_name ] = sanitize_text_field( wp_unslash( $_GET[ $param_name ] ) );
$yoast_free_input_fields = yoast_free_bulk_sanitize_input_fields();
if ( ! empty( $yoast_free_input_fields ) ) {
check_admin_referer( 'bulk-editor-table', 'nonce' );
// If type is empty, fill it with value of first tab (title).
if ( ! isset( $yoast_free_input_fields['type'] ) ) {
$yoast_free_input_fields['type'] = 'title';
$yoast_bulk_editor_arguments = [
'input_fields' => $yoast_free_input_fields,
'nonce' => wp_create_nonce( 'bulk-editor-table' ),
$wpseo_bulk_titles_table = new WPSEO_Bulk_Title_Editor_List_Table( $yoast_bulk_editor_arguments );
$wpseo_bulk_description_table = new WPSEO_Bulk_Description_List_Table( $yoast_bulk_editor_arguments );
$yoast_free_screen_reader_content = [
'heading_views' => __( 'Filter posts list', 'wordpress-seo' ),
'heading_pagination' => __( 'Posts list navigation', 'wordpress-seo' ),
'heading_list' => __( 'Posts list', 'wordpress-seo' ),
get_current_screen()->set_screen_reader_content( $yoast_free_screen_reader_content );
if ( ! empty( $_REQUEST['_wp_http_referer'] ) && isset( $_SERVER['REQUEST_URI'] ) ) {
$request_uri = sanitize_file_name( wp_unslash( $_SERVER['REQUEST_URI'] ) );
[ '_wp_http_referer', '_wpnonce' ],
* Renders a bulk editor tab.
* @param WPSEO_Bulk_List_Table $table The table to render.
* @param string $id The id for the tab.
function wpseo_get_rendered_tab( $table, $id ) {
<div id="<?php echo esc_attr( $id ); ?>" class="wpseotab">
<?php /* phpcs:ignore WordPress.Security.EscapeOutput -- WPSEO_Utils::format_json_encode is safe. */ ?>
var wpseoBulkEditorNonce = <?php echo WPSEO_Utils::format_json_encode( wp_create_nonce( 'wpseo-bulk-editor' ) ); ?>;
// eslint-disable-next-line
var wpseo_bulk_editor_nonce = wpseoBulkEditorNonce;
<div class="wpseo_table_page">
<h2 class="nav-tab-wrapper" id="wpseo-tabs">
<a class="nav-tab" id="title-tab" href="#top#title"><?php esc_html_e( 'Title', 'wordpress-seo' ); ?></a>
<a class="nav-tab" id="description-tab"
href="#top#description"><?php esc_html_e( 'Description', 'wordpress-seo' ); ?></a>
<?php wpseo_get_rendered_tab( $wpseo_bulk_titles_table, 'title' ); ?>
<?php wpseo_get_rendered_tab( $wpseo_bulk_description_table, 'description' ); ?>