PluginProbe
JCH Optimize / trunk
JCH Optimize vtrunk
6.0.2 6.0.1 trunk 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.10.0 2.2.0 2.2.1 All 58 releases
jch-optimize / src / functions.php

functions.php in JCH Optimize trunk, at src/functions.php

22 lines 513 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace JchOptimize\WordPress;
4
5 use function base64_decode;
6 use function base64_encode;
7 use function strtr;
8
9 if (! function_exists('JchOptimize\WordPress\base64_encode_url')) {
10 function base64_encode_url(string $string): string
11 {
12 return strtr(base64_encode($string), '+/=', '._-');
13 }
14 }
15
16 if (! function_exists('JchOptimize\WordPress\base64_decode_url')) {
17 function base64_decode_url(string $string): string
18 {
19 return base64_decode(strtr($string, '._-', '+/='));
20 }
21 }
22