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

Closed
luisarn opened this Issue Mar 15, 2016 · 1 comment

Comments

2 participants
@luisarn

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 tfrommen closed this in e0f36c3 Mar 15, 2016

@tfrommen

This comment has been minimized.

Show comment
Hide comment
@tfrommen

tfrommen Mar 15, 2016

Contributor

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

Contributor

tfrommen commented Mar 15, 2016

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 join this conversation on GitHub. Already have an account? Sign in to comment