PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
utilities
<?php class WPML_Encoding { /** * @param string $string The string to decode. * @param string $encodings A comma separated list of encodings in the order that the data was encoded * * @return mixed */ public static function decode( $string, $encodings ) { $decoded_data = $string; // NOTE: We decode in the reverse order of the encodings given foreach ( array_reverse( explode( ',', $encodings ) ) as $encoding ) { switch ( $encoding ) { case 'json': $decoded_data = json_decode( $decoded_data, true ); break; case 'base64': $decoded_data = base64_decode( $decoded_data ); break; case 'urlencode': $decoded_data = urldecode( $decoded_data ); break; } } /** * @since 4.1.0 */ return apply_filters( 'wpml_decode_string', $decoded_data, $string, $encodings ); } /** * @param mixed $data The data to encode. * @param string $encodings A comma separated list of encodings in the order that the data was encoded * * @return string */ public static function encode( $data, $encodings ) { $encoded_data = $data; foreach ( explode( ',', $encodings ) as $encoding ) { switch ( $encoding ) { case 'json': $encoded_data = wp_json_encode( $encoded_data ); break; case 'base64': $encoded_data = base64_encode( $encoded_data ); break; case 'urlencode': $encoded_data = urlencode( $encoded_data ); break; } } /** * @since 4.1.0 */ return apply_filters( 'wpml_encode_string', $encoded_data, $data, $encodings ); } }
[-] class-wpml-wp-cache-factory.php
[edit]
[-] class-wpml-inactive-content.php
[edit]
[-] class-wpml-slash-management.php
[edit]
[-] class-wpml-transient.php
[edit]
[-] class-wpml-ajax.php
[edit]
[-] class-wpml-locale.php
[edit]
[-] class-wpml-string-functions.php
[edit]
[-] class-wpml-deactivate-old-media-factory.php
[edit]
[-] class-wpml-global-ajax.php
[edit]
[+]
admin
[-] AutoAdjustIdsFactory.php
[edit]
[-] wpml-queried-object.php
[edit]
[-] class-wpml-wp-query-api.php
[edit]
[-] class-debug-backtrace.php
[edit]
[-] class-wpml-temporary-switch-admin-language.php
[edit]
[-] class-wpml-flags-factory.php
[edit]
[-] class-wpml-deactivate-old-media.php
[edit]
[-] AutoAdjustIds.php
[edit]
[-] Resources.php
[edit]
[-] class-wpml-encoding.php
[edit]
[-] class-wpml-temporary-switch-language.php
[edit]
[-] class-wpml-flags.php
[edit]
[+]
..
[-] Pager.php
[edit]
[-] class-wpml-wp-post.php
[edit]
[-] class-wpml-cache-factory.php
[edit]
[-] wpml-uuid.php
[edit]
[-] class-wpml-encoding-validation.php
[edit]
[-] wpml-languages-notices.php
[edit]
[-] class-wpml-non-persistent-cache.php
[edit]
[+]
user
[-] class-wpml-wp-cache.php
[edit]
[+]
lock
[-] class-wpml-simple-language-selector.php
[edit]
[-] class-wpml-debug-backtrace.php
[edit]
[-] class-wpml-wp-taxonomy-query.php
[edit]
[-] class-wpml-wp-cache-item.php
[edit]
[-] class-wpml-translate-link-targets.php
[edit]