Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Advanced translator copy post button doesn't copy the post full name #195

Closed
luisarn opened this issue Mar 15, 2016 · 1 comment
Closed
Assignees
Milestone

Comments

@luisarn
Copy link

luisarn commented Mar 15, 2016

Hi,

The Advanced Translator copy post button doesn't copy the post full name if the post title is too long.
Wordpress automatically shortens the generated post name, putting dots in the middle if the title is longer than a certain number of characters.

Changing the admin.js / admin.min.js line 55, from:

postSlug = $( '#editable-post-name' ).html();

to:

postSlug = $( '#editable-post-name-full' ).html();

should solve this issue.

Best regards,
Luis

@tfrommen tfrommen added this to the v2.4.0 milestone Mar 15, 2016
@tfrommen tfrommen self-assigned this Mar 15, 2016
@tfrommen
Copy link
Member

Hi Luis,

thanks for the issue (and the fix).
I just adapted this in the master, and I also fixed an unrelated bug with the post slug.

Thanks again,
Thorsten

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants