addslashes_gpc()
Устарела с версии 7.0.0. Больше не поддерживается и может быть удалена. Используйте wp_slash().
Adds slashes to a string or recursively adds slashes to strings within an array.
This function is just a wrapper for wp_slash(). It was originally related to magic quotes functionality which was deprecated in PHP 5.3.0 and removed in PHP 5.4.0.
Хуков нет.
Возвращает
string|array. Slashed $gpc.
Использование
addslashes_gpc( $gpc );
- $gpc(строка|массив) (обязательный)
- String or array of data to slash.
Заметки
| Смотрите: wp_slash() |
Список изменений
| С версии 0.71 | Введена. |
| Устарела с 7.0.0 | Use wp_slash() instead. |
Код addslashes_gpc() addslashes gpc WP 7.1.3
function addslashes_gpc( $gpc ) {
_deprecated_function( __FUNCTION__, '7.0.0', 'wp_slash()' );
return wp_slash( $gpc );
}