| | 3393 | |
| | 3394 | /** |
| | 3395 | * Formerly used to escape strings before INSERTing |
| | 3396 | * into the DB. |
| | 3397 | * |
| | 3398 | * @since 0.71 |
| | 3399 | * |
| | 3400 | * @deprecated 3.7.0 |
| | 3401 | * @deprecated Original intent was to add slashes to POSTed data, use $wpdb::prepare instead |
| | 3402 | * |
| | 3403 | * @param string $content The text to pass through the filter. |
| | 3404 | * @return string Text returned from the 'format_to_post' filter. |
| | 3405 | */ |
| | 3406 | function format_to_post($content) { |
| | 3407 | _deprecated_function( __FUNCTION__, '3.7', '$wpdb::prepare' ); |
| | 3408 | /** |
| | 3409 | * Filter the string passed to format_to_post |
| | 3410 | * |
| | 3411 | * @since 0.71 |
| | 3412 | * |
| | 3413 | * @deprecated 3.7.0 |
| | 3414 | * @deprecated Original intent was to add slashes to POSTed data, use $wpdb::prepare instead |
| | 3415 | * |
| | 3416 | * @param string $content The content to format. |
| | 3417 | */ |
| | 3418 | $content = apply_filters('format_to_post', $content); |
| | 3419 | return $content; |
| | 3420 | } |