Special characters in post title break sharing
-
Special characters in post titles (such as hyphens, quotes, etc.) were breaking the functionality of the share buttons.
In the plugin file
accesspress-social-share.php
, I replaced this line of code:$title = get_the_title();
with
$title = str_replace('+', '%20', urlencode($post->post_title));
which fixed the problem.
Perhaps this can be addressed in the next update/release? Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Special characters in post title break sharing’ is closed to new replies.