{"action":"closed","number":53,"pull_request":{"url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/53","id":171057549,"html_url":"https://github.com/magicstickuk/multisite-post-duplicator/pull/53","diff_url":"https://github.com/magicstickuk/multisite-post-duplicator/pull/53.diff","patch_url":"https://github.com/magicstickuk/multisite-post-duplicator/pull/53.patch","issue_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/issues/53","number":53,"state":"closed","locked":false,"title":"Fix 2 bugs with ACF Medias fields","user":{"login":"WillyMichel","id":10269069,"avatar_url":"https://avatars3.githubusercontent.com/u/10269069?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyMichel","html_url":"https://github.com/WillyMichel","followers_url":"https://api.github.com/users/WillyMichel/followers","following_url":"https://api.github.com/users/WillyMichel/following{/other_user}","gists_url":"https://api.github.com/users/WillyMichel/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyMichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyMichel/subscriptions","organizations_url":"https://api.github.com/users/WillyMichel/orgs","repos_url":"https://api.github.com/users/WillyMichel/repos","events_url":"https://api.github.com/users/WillyMichel/events{/privacy}","received_events_url":"https://api.github.com/users/WillyMichel/received_events","type":"User","site_admin":false},"body":"First I use `get_field_object()` instead of a query to the database. Like that I can handle the ACF fields registered by PHP file. And I guess it still works with the usual admin ACF field group since it's an ACF function.\r\nSecondly there's a fix for the clone fields containing media. I just check if the key is longer than a classic single acf field key, then I get the last key to check it's type so the function can process medias in the clone field. There's probably more to it since you can manage the clone field in different ways.","created_at":"2018-02-23T16:27:25Z","updated_at":"2018-04-08T21:07:49Z","closed_at":"2018-04-08T21:07:49Z","merged_at":"2018-04-08T21:07:49Z","merge_commit_sha":"ac44e9ae0f92568431c8b8bf24a51b36f3af79b6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/53/commits","review_comments_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/53/comments","review_comment_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/issues/53/comments","statuses_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/statuses/78b29813d573efc4d82f4fc9f46f7682e25bc105","head":{"label":"WillyMichel:patch-1","ref":"patch-1","sha":"78b29813d573efc4d82f4fc9f46f7682e25bc105","user":{"login":"WillyMichel","id":10269069,"avatar_url":"https://avatars3.githubusercontent.com/u/10269069?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyMichel","html_url":"https://github.com/WillyMichel","followers_url":"https://api.github.com/users/WillyMichel/followers","following_url":"https://api.github.com/users/WillyMichel/following{/other_user}","gists_url":"https://api.github.com/users/WillyMichel/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyMichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyMichel/subscriptions","organizations_url":"https://api.github.com/users/WillyMichel/orgs","repos_url":"https://api.github.com/users/WillyMichel/repos","events_url":"https://api.github.com/users/WillyMichel/events{/privacy}","received_events_url":"https://api.github.com/users/WillyMichel/received_events","type":"User","site_admin":false},"repo":{"id":122503754,"name":"multisite-post-duplicator","full_name":"WillyMichel/multisite-post-duplicator","owner":{"login":"WillyMichel","id":10269069,"avatar_url":"https://avatars3.githubusercontent.com/u/10269069?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyMichel","html_url":"https://github.com/WillyMichel","followers_url":"https://api.github.com/users/WillyMichel/followers","following_url":"https://api.github.com/users/WillyMichel/following{/other_user}","gists_url":"https://api.github.com/users/WillyMichel/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyMichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyMichel/subscriptions","organizations_url":"https://api.github.com/users/WillyMichel/orgs","repos_url":"https://api.github.com/users/WillyMichel/repos","events_url":"https://api.github.com/users/WillyMichel/events{/privacy}","received_events_url":"https://api.github.com/users/WillyMichel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WillyMichel/multisite-post-duplicator","description":null,"fork":true,"url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator","forks_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/forks","keys_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/teams","hooks_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/hooks","issue_events_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/issues/events{/number}","events_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/events","assignees_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/assignees{/user}","branches_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/branches{/branch}","tags_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/tags","blobs_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/git/refs{/sha}","trees_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/statuses/{sha}","languages_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/languages","stargazers_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/stargazers","contributors_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/contributors","subscribers_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/subscribers","subscription_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/subscription","commits_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/commits{/sha}","git_commits_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/git/commits{/sha}","comments_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/comments{/number}","issue_comment_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/issues/comments{/number}","contents_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/contents/{+path}","compare_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/merges","archive_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/downloads","issues_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/issues{/number}","pulls_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/pulls{/number}","milestones_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/milestones{/number}","notifications_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/labels{/name}","releases_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/releases{/id}","deployments_url":"https://api.github.com/repos/WillyMichel/multisite-post-duplicator/deployments","created_at":"2018-02-22T16:23:38Z","updated_at":"2018-02-22T16:23:40Z","pushed_at":"2018-02-23T16:45:27Z","git_url":"git://github.com/WillyMichel/multisite-post-duplicator.git","ssh_url":"git@github.com:WillyMichel/multisite-post-duplicator.git","clone_url":"https://github.com/WillyMichel/multisite-post-duplicator.git","svn_url":"https://github.com/WillyMichel/multisite-post-duplicator","homepage":null,"size":1289,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"magicstickuk:v1.7.6","ref":"v1.7.6","sha":"4e3f5803b0042d7fd0c47831015fbb99564e6e39","user":{"login":"magicstickuk","id":6872303,"avatar_url":"https://avatars1.githubusercontent.com/u/6872303?v=4","gravatar_id":"","url":"https://api.github.com/users/magicstickuk","html_url":"https://github.com/magicstickuk","followers_url":"https://api.github.com/users/magicstickuk/followers","following_url":"https://api.github.com/users/magicstickuk/following{/other_user}","gists_url":"https://api.github.com/users/magicstickuk/gists{/gist_id}","starred_url":"https://api.github.com/users/magicstickuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicstickuk/subscriptions","organizations_url":"https://api.github.com/users/magicstickuk/orgs","repos_url":"https://api.github.com/users/magicstickuk/repos","events_url":"https://api.github.com/users/magicstickuk/events{/privacy}","received_events_url":"https://api.github.com/users/magicstickuk/received_events","type":"User","site_admin":false},"repo":{"id":33425024,"name":"multisite-post-duplicator","full_name":"magicstickuk/multisite-post-duplicator","owner":{"login":"magicstickuk","id":6872303,"avatar_url":"https://avatars1.githubusercontent.com/u/6872303?v=4","gravatar_id":"","url":"https://api.github.com/users/magicstickuk","html_url":"https://github.com/magicstickuk","followers_url":"https://api.github.com/users/magicstickuk/followers","following_url":"https://api.github.com/users/magicstickuk/following{/other_user}","gists_url":"https://api.github.com/users/magicstickuk/gists{/gist_id}","starred_url":"https://api.github.com/users/magicstickuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicstickuk/subscriptions","organizations_url":"https://api.github.com/users/magicstickuk/orgs","repos_url":"https://api.github.com/users/magicstickuk/repos","events_url":"https://api.github.com/users/magicstickuk/events{/privacy}","received_events_url":"https://api.github.com/users/magicstickuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/magicstickuk/multisite-post-duplicator","description":null,"fork":false,"url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator","forks_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/forks","keys_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/teams","hooks_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/hooks","issue_events_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/issues/events{/number}","events_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/events","assignees_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/assignees{/user}","branches_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/branches{/branch}","tags_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/tags","blobs_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/git/refs{/sha}","trees_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/statuses/{sha}","languages_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/languages","stargazers_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/stargazers","contributors_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/contributors","subscribers_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/subscribers","subscription_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/subscription","commits_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/commits{/sha}","git_commits_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/git/commits{/sha}","comments_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/comments{/number}","issue_comment_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/issues/comments{/number}","contents_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/contents/{+path}","compare_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/merges","archive_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/downloads","issues_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/issues{/number}","pulls_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls{/number}","milestones_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/milestones{/number}","notifications_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/labels{/name}","releases_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/releases{/id}","deployments_url":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/deployments","created_at":"2015-04-05T00:20:49Z","updated_at":"2018-03-16T13:23:42Z","pushed_at":"2018-04-08T21:07:49Z","git_url":"git://github.com/magicstickuk/multisite-post-duplicator.git","ssh_url":"git@github.com:magicstickuk/multisite-post-duplicator.git","clone_url":"https://github.com/magicstickuk/multisite-post-duplicator.git","svn_url":"https://github.com/magicstickuk/multisite-post-duplicator","homepage":null,"size":1267,"stargazers_count":22,"watchers_count":22,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":9,"open_issues":10,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/53"},"html":{"href":"https://github.com/magicstickuk/multisite-post-duplicator/pull/53"},"issue":{"href":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/issues/53"},"comments":{"href":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/magicstickuk/multisite-post-duplicator/statuses/78b29813d573efc4d82f4fc9f46f7682e25bc105"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"magicstickuk","id":6872303,"avatar_url":"https://avatars1.githubusercontent.com/u/6872303?v=4","gravatar_id":"","url":"https://api.github.com/users/magicstickuk","html_url":"https://github.com/magicstickuk","followers_url":"https://api.github.com/users/magicstickuk/followers","following_url":"https://api.github.com/users/magicstickuk/following{/other_user}","gists_url":"https://api.github.com/users/magicstickuk/gists{/gist_id}","starred_url":"https://api.github.com/users/magicstickuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicstickuk/subscriptions","organizations_url":"https://api.github.com/users/magicstickuk/orgs","repos_url":"https://api.github.com/users/magicstickuk/repos","events_url":"https://api.github.com/users/magicstickuk/events{/privacy}","received_events_url":"https://api.github.com/users/magicstickuk/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":9,"deletions":13,"changed_files":1}}
{"actor":{"display_login":"magicstickuk"}}