This function has been deprecated.

format_to_post( string $content )

Formerly used to escape strings before inserting into the DB.


Description

Has not performed this function for many, many years. Use wpdb::prepare() instead.


Parameters

$content

(Required) The text to format.


Return

(string) The very same text.


Source

File: wp-includes/deprecated.php

function format_to_post( $content ) {
	_deprecated_function( __FUNCTION__, 'WP-3.9.0' );
	return $content;
}


Changelog

Changelog
Version Description
WP-3.9.0 This function has been deprecated.
WP-0.71 Introduced. This function has been deprecated.