dougwollison / nlingual

Versatile and flexible multilingual system for WordPress.
https://wordpress.org/plugins/nlingual/
GNU General Public License v2.0
13 stars 7 forks source link

author archive url gets mangled #17

Closed bdeshi closed 3 years ago

bdeshi commented 3 years ago

hi great little plugin, but I've encountered a bug: the author archive url gets mangled when nLinugal is active.

Tested with fresh wp 5.8 and Twenty twenty theme, and with nLingual master at 7fbe5fd77139ad00cf491d4480ebd04cf23b8e71

How to reproduce:

  1. just install the plugin, with all default settings.
  2. go to the author archive page.
  3. this results in a 404, and the url is something like: the following: (where base url is example.com, author slug is demo_author)

    https://example.com/a href=https:/example.com/author/demo_author/ title=Posts by demo_author rel=authordemo_author/a
dougwollison commented 3 years ago

Okay, apparently I never actually tested this (the sites I develop this for never use author archives), and WordPress is really inconsistent with their function names (just about every other _link() function returns a permalink, except this one).

This is fixed on the master branch; I'll be publishing a minor update release in the next few days.