wpdb::_escape_identifier_value
Escapes an identifier value without adding the surrounding quotes.
- Permitted characters in quoted identifiers include the full Unicode Basic Multilingual Plane (BMP), except U+0000.
- To quote the identifier itself, you need to double the character, e.g.
a``b.
Метод класса: wpdb{}
Хуков нет.
Возвращает
string. Escaped identifier.
Использование
// private - только в коде основоного (родительского) класса $result = $this->_escape_identifier_value( $identifier );
- $identifier(строка) (обязательный)
- Identifier to escape.
Список изменений
| С версии 6.2.0 | Введена. |
Код wpdb::_escape_identifier_value() wpdb:: escape identifier value WP 7.1.5
private function _escape_identifier_value( $identifier ) {
return str_replace( '`', '``', $identifier );
}