Switch between wp_get_shortlink() and get_permalink() required
-
If the permalink contains CJK characters, some sites won’t parse it correctly, e.g. twitter. The link will be broken after the last latin character so that it will cause problems.
So I’m now using wp_get_shortlink() instead of get_permalink() as following:
//"simple-share-buttons-adder.php" 1526L //$urlCurrentPage = get_permalink($post->ID); $urlCurrentPage = wp_get_shortlink($post->ID);But the permalink do contain more information than the short one and a pure English site will definitely prefer it, so I think that a switch is required.
Please consider adding this feature, thanks a lot 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Switch between wp_get_shortlink() and get_permalink() required’ is closed to new replies.