format_to_post

The timeline below displays how wordpress function format_to_post has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.6

/**
 * Formerly used to escape strings before inserting into the DB.
 *
 * Has not performed this function for many, many years. Use wpdb::prepare() instead.
 *
 * @since 0.71
 * @deprecated 3.9.0
 *
 * @param string $content The text to format.
 * @return string The very same text.
 */
function format_to_post($content)
{
    _deprecated_function(__FUNCTION__, '3.9.0');
    return $content;
}

WordPress Version: 3.9

/**
 * Formerly used to escape strings before inserting into the DB.
 *
 * Has not performed this function for many, many years. Use wpdb::prepare() instead.
 *
 * @since 0.71
 * @deprecated 3.9.0
 *
 * @param string $content The text to format.
 * @return string The very same text.
 */
function format_to_post($content)
{
    _deprecated_function(__FUNCTION__, '3.9');
    return $content;
}

WordPress Version: 3.8

/**
 * Holder for the 'format_to_post' filter.
 *
 * @since 0.71
 *
 * @param string $content The text to pass through the filter.
 * @return string Text returned from the 'format_to_post' filter.
 */
function format_to_post($content)
{
    /**
     * Filter the string returned by format_to_post().
     *
     * @since 1.2.0
     *
     * @param string $content The string to format.
     */
    $content = apply_filters('format_to_post', $content);
    return $content;
}

WordPress Version: 3.7

/**
 * Holder for the 'format_to_post' filter.
 *
 * @since 0.71
 *
 * @param string $content The text to pass through the filter.
 * @return string Text returned from the 'format_to_post' filter.
 */
function format_to_post($content)
{
    $content = apply_filters('format_to_post', $content);
    return $content;
}