Skip to content

Instantly share code, notes, and snippets.

@elliotcondon
Created December 19, 2016 00:17
Show Gist options
  • Save elliotcondon/5eb0250b1e48b4923e37804cc9547265 to your computer and use it in GitHub Desktop.
Save elliotcondon/5eb0250b1e48b4923e37804cc9547265 to your computer and use it in GitHub Desktop.
Hi guys
There is a JS error preventing the 'duplicate' checkbox from displaying the 'Duplicate' button when editing a post.
The JS error can be found in the file 'res/js/scripts.js' on line 27
Please change:
```
if(jQuery('#post ').find('input[name="icl_dupes[]"]:checked'.length > 0)){
```
to:
```
if( jQuery('#post').find('input[name="icl_dupes[]"]:checked').length > 0 ){
```
This is found in version 3.6.2 of WPML
Thanks
Elliot (ACF developer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment