W3cubDocs

/WordPress

WP_Customize_Manager::customize_preview_override_404_status()

This method has been deprecated.

Prevent sending a 404 status when returning the response for the customize preview, since it causes the jQuery Ajax to fail. Send 200 instead.

Source

File: wp-includes/class-wp-customize-manager.php

public function customize_preview_override_404_status() {
		_deprecated_function( __METHOD__, '4.7.0' );
	}

Changelog

Version Description
4.7.0 This method has been deprecated.
4.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_override_404_status