Eight years is a long time. It covers the period from birth to third grade, or an entire two-term US presidency. But, as I just learned, eight years has not yet been enough time to get a very simple fix to the way WordPress generates permalinks included into WordPress Core. A few weeks ago, I noticed that if you write a slash character (/) in a post title, the permalink that gets generated mushes together the words separated by the slash, rather than separating them with a – character as I’d expected. I’ve made this article an example: notice how the URL says openunfixed rather than open-unfixed, because of the slash.
In addition to being odd, this has some minor negative SEO consequences, since nobody’s doing a Google search for the non-word “openunfixed.” It’s also very easy to fix: a minor change to one line of code in wp-includes/formatting.php. Putting all this together, I filed a Trac ticket outlining the problem and the fix earlier this afternoon.
Here’s where it gets weird: my Trac ticket was immediately marked as a duplicate of an eight-year-old ticket on the same topic that has still not been resolved. The fix in that ticket
Source: https://managewp.org/articles/15957/i-just-found-a-simple-wordpress-bug-that-s-been-open-unfixed-for-eight-years
source https://williechiu40.wordpress.com/2017/08/25/i-just-found-a-simple-wordpress-bug-thats-been-openunfixed-for-eight-years/
No comments:
Post a Comment