WPSEO_Rewrite::encode_to_upper()publicYoast 1.0

Converts the encoded URI string to uppercase.

Метод класса: WPSEO_Rewrite{}

Хуков нет.

Возвращает

Строку. The uppercased string.

Использование

$WPSEO_Rewrite = new WPSEO_Rewrite();
$WPSEO_Rewrite->encode_to_upper( $encoded );
$encoded(строка) (обязательный)
The encoded string.

Код WPSEO_Rewrite::encode_to_upper() Yoast 22.4

public function encode_to_upper( $encoded ) {
	if ( strpos( $encoded, '%' ) === false ) {
		return $encoded;
	}

	return strtoupper( $encoded );
}