{"action":"created","comment":{"url":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/comments/60839801","id":60839801,"diff_hunk":"@@ -788,6 +788,25 @@ function mm_vc_posts() {\n \t$image_sizes    = mm_get_image_sizes_for_vc( 'mm-posts' );\n \t$templates      = mm_get_mm_posts_templates_for_vc( 'mm-posts' );\n \n+\t// Grab post type values with capital letters for description and title fields.\n+\t$post_types_formatted = mm_get_post_types();\n+\n+\t// Format the array of post titles to include better formatting.\n+\t$last = array_slice( $post_types_formatted, -1 );\n+\t$first = join( ', ', array_slice( $post_types_formatted, 0, -1 ) );\n+\t$both = array_filter( array_merge( array( $first ), $last ), 'strlen');\n+\t$formatted_titles = join(' or ', $both);\n+\n+\t$title_heading = sprintf(\n+\t\t__( '%s Titles', 'mm-components' ),\n+\t\t$formatted_titles\n+\t);\n+\n+\t$title_description = sprintf(\n+\t\t__( 'Enter a specific %s to display', 'mm-components' ),\n+\t\t$formatted_titles","path":"components/posts/posts.php","position":27,"original_position":50,"commit_id":"c3835ddf248aad33c0317b6ac4509797f5a0557d","original_commit_id":"c3835ddf248aad33c0317b6ac4509797f5a0557d","user":{"login":"BraadMartin","id":7003247,"avatar_url":"https://avatars.githubusercontent.com/u/7003247?v=3","gravatar_id":"","url":"https://api.github.com/users/BraadMartin","html_url":"https://github.com/BraadMartin","followers_url":"https://api.github.com/users/BraadMartin/followers","following_url":"https://api.github.com/users/BraadMartin/following{/other_user}","gists_url":"https://api.github.com/users/BraadMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/BraadMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BraadMartin/subscriptions","organizations_url":"https://api.github.com/users/BraadMartin/orgs","repos_url":"https://api.github.com/users/BraadMartin/repos","events_url":"https://api.github.com/users/BraadMartin/events{/privacy}","received_events_url":"https://api.github.com/users/BraadMartin/received_events","type":"User","site_admin":false},"body":"esc_html( $formatted_titles )","created_at":"2016-04-24T06:37:13Z","updated_at":"2016-04-24T06:37:13Z","html_url":"https://github.com/MIGHTYminnow/mm-components/pull/129#discussion_r60839801","pull_request_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129","_links":{"self":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/comments/60839801"},"html":{"href":"https://github.com/MIGHTYminnow/mm-components/pull/129#discussion_r60839801"},"pull_request":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129"}}},"pull_request":{"url":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129","id":67566169,"html_url":"https://github.com/MIGHTYminnow/mm-components/pull/129","diff_url":"https://github.com/MIGHTYminnow/mm-components/pull/129.diff","patch_url":"https://github.com/MIGHTYminnow/mm-components/pull/129.patch","issue_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/issues/129","number":129,"state":"open","locked":false,"title":"Post title autocomplete","user":{"login":"jgonzo127","id":6222196,"avatar_url":"https://avatars.githubusercontent.com/u/6222196?v=3","gravatar_id":"","url":"https://api.github.com/users/jgonzo127","html_url":"https://github.com/jgonzo127","followers_url":"https://api.github.com/users/jgonzo127/followers","following_url":"https://api.github.com/users/jgonzo127/following{/other_user}","gists_url":"https://api.github.com/users/jgonzo127/gists{/gist_id}","starred_url":"https://api.github.com/users/jgonzo127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgonzo127/subscriptions","organizations_url":"https://api.github.com/users/jgonzo127/orgs","repos_url":"https://api.github.com/users/jgonzo127/repos","events_url":"https://api.github.com/users/jgonzo127/events{/privacy}","received_events_url":"https://api.github.com/users/jgonzo127/received_events","type":"User","site_admin":false},"body":"I wanted to look into getting the VC autocomplete field working for post title. I managed to get the functionality working by creating a new function mm_get_post_titles_for_vc() that uses the existing mm_get_post_types() to grab all post types and return an array of titles. However, the default VC styling was looking very weird and hindered the user experience of adding multiple post titles to this field. I was able to add some custom styling and saved that in our CSS folder. I wasn't 100% sure it should live here and I'm open to moving it if need be.","created_at":"2016-04-22T20:11:28Z","updated_at":"2016-04-24T06:37:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f51cf87c1bf1daf55641d3a43b47dc4329f6e8b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129/commits","review_comments_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129/comments","review_comment_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/issues/129/comments","statuses_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/statuses/c3835ddf248aad33c0317b6ac4509797f5a0557d","head":{"label":"jgonzo127:post-title-autocomplete","ref":"post-title-autocomplete","sha":"c3835ddf248aad33c0317b6ac4509797f5a0557d","user":{"login":"jgonzo127","id":6222196,"avatar_url":"https://avatars.githubusercontent.com/u/6222196?v=3","gravatar_id":"","url":"https://api.github.com/users/jgonzo127","html_url":"https://github.com/jgonzo127","followers_url":"https://api.github.com/users/jgonzo127/followers","following_url":"https://api.github.com/users/jgonzo127/following{/other_user}","gists_url":"https://api.github.com/users/jgonzo127/gists{/gist_id}","starred_url":"https://api.github.com/users/jgonzo127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgonzo127/subscriptions","organizations_url":"https://api.github.com/users/jgonzo127/orgs","repos_url":"https://api.github.com/users/jgonzo127/repos","events_url":"https://api.github.com/users/jgonzo127/events{/privacy}","received_events_url":"https://api.github.com/users/jgonzo127/received_events","type":"User","site_admin":false},"repo":{"id":41935529,"name":"mm-components","full_name":"jgonzo127/mm-components","owner":{"login":"jgonzo127","id":6222196,"avatar_url":"https://avatars.githubusercontent.com/u/6222196?v=3","gravatar_id":"","url":"https://api.github.com/users/jgonzo127","html_url":"https://github.com/jgonzo127","followers_url":"https://api.github.com/users/jgonzo127/followers","following_url":"https://api.github.com/users/jgonzo127/following{/other_user}","gists_url":"https://api.github.com/users/jgonzo127/gists{/gist_id}","starred_url":"https://api.github.com/users/jgonzo127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgonzo127/subscriptions","organizations_url":"https://api.github.com/users/jgonzo127/orgs","repos_url":"https://api.github.com/users/jgonzo127/repos","events_url":"https://api.github.com/users/jgonzo127/events{/privacy}","received_events_url":"https://api.github.com/users/jgonzo127/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jgonzo127/mm-components","description":"[WordPress] Custom components and functionality for WordPress.","fork":true,"url":"https://api.github.com/repos/jgonzo127/mm-components","forks_url":"https://api.github.com/repos/jgonzo127/mm-components/forks","keys_url":"https://api.github.com/repos/jgonzo127/mm-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jgonzo127/mm-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jgonzo127/mm-components/teams","hooks_url":"https://api.github.com/repos/jgonzo127/mm-components/hooks","issue_events_url":"https://api.github.com/repos/jgonzo127/mm-components/issues/events{/number}","events_url":"https://api.github.com/repos/jgonzo127/mm-components/events","assignees_url":"https://api.github.com/repos/jgonzo127/mm-components/assignees{/user}","branches_url":"https://api.github.com/repos/jgonzo127/mm-components/branches{/branch}","tags_url":"https://api.github.com/repos/jgonzo127/mm-components/tags","blobs_url":"https://api.github.com/repos/jgonzo127/mm-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jgonzo127/mm-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jgonzo127/mm-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/jgonzo127/mm-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jgonzo127/mm-components/statuses/{sha}","languages_url":"https://api.github.com/repos/jgonzo127/mm-components/languages","stargazers_url":"https://api.github.com/repos/jgonzo127/mm-components/stargazers","contributors_url":"https://api.github.com/repos/jgonzo127/mm-components/contributors","subscribers_url":"https://api.github.com/repos/jgonzo127/mm-components/subscribers","subscription_url":"https://api.github.com/repos/jgonzo127/mm-components/subscription","commits_url":"https://api.github.com/repos/jgonzo127/mm-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/jgonzo127/mm-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/jgonzo127/mm-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/jgonzo127/mm-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/jgonzo127/mm-components/contents/{+path}","compare_url":"https://api.github.com/repos/jgonzo127/mm-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jgonzo127/mm-components/merges","archive_url":"https://api.github.com/repos/jgonzo127/mm-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jgonzo127/mm-components/downloads","issues_url":"https://api.github.com/repos/jgonzo127/mm-components/issues{/number}","pulls_url":"https://api.github.com/repos/jgonzo127/mm-components/pulls{/number}","milestones_url":"https://api.github.com/repos/jgonzo127/mm-components/milestones{/number}","notifications_url":"https://api.github.com/repos/jgonzo127/mm-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jgonzo127/mm-components/labels{/name}","releases_url":"https://api.github.com/repos/jgonzo127/mm-components/releases{/id}","deployments_url":"https://api.github.com/repos/jgonzo127/mm-components/deployments","created_at":"2015-09-04T20:05:19Z","updated_at":"2016-02-21T20:36:13Z","pushed_at":"2016-04-24T06:26:48Z","git_url":"git://github.com/jgonzo127/mm-components.git","ssh_url":"git@github.com:jgonzo127/mm-components.git","clone_url":"https://github.com/jgonzo127/mm-components.git","svn_url":"https://github.com/jgonzo127/mm-components","homepage":"","size":4238,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"MIGHTYminnow:master","ref":"master","sha":"a9227e84e9d0e18c2dcbca09addd6a1cf132e529","user":{"login":"MIGHTYminnow","id":10237601,"avatar_url":"https://avatars.githubusercontent.com/u/10237601?v=3","gravatar_id":"","url":"https://api.github.com/users/MIGHTYminnow","html_url":"https://github.com/MIGHTYminnow","followers_url":"https://api.github.com/users/MIGHTYminnow/followers","following_url":"https://api.github.com/users/MIGHTYminnow/following{/other_user}","gists_url":"https://api.github.com/users/MIGHTYminnow/gists{/gist_id}","starred_url":"https://api.github.com/users/MIGHTYminnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MIGHTYminnow/subscriptions","organizations_url":"https://api.github.com/users/MIGHTYminnow/orgs","repos_url":"https://api.github.com/users/MIGHTYminnow/repos","events_url":"https://api.github.com/users/MIGHTYminnow/events{/privacy}","received_events_url":"https://api.github.com/users/MIGHTYminnow/received_events","type":"Organization","site_admin":false},"repo":{"id":37879250,"name":"mm-components","full_name":"MIGHTYminnow/mm-components","owner":{"login":"MIGHTYminnow","id":10237601,"avatar_url":"https://avatars.githubusercontent.com/u/10237601?v=3","gravatar_id":"","url":"https://api.github.com/users/MIGHTYminnow","html_url":"https://github.com/MIGHTYminnow","followers_url":"https://api.github.com/users/MIGHTYminnow/followers","following_url":"https://api.github.com/users/MIGHTYminnow/following{/other_user}","gists_url":"https://api.github.com/users/MIGHTYminnow/gists{/gist_id}","starred_url":"https://api.github.com/users/MIGHTYminnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MIGHTYminnow/subscriptions","organizations_url":"https://api.github.com/users/MIGHTYminnow/orgs","repos_url":"https://api.github.com/users/MIGHTYminnow/repos","events_url":"https://api.github.com/users/MIGHTYminnow/events{/privacy}","received_events_url":"https://api.github.com/users/MIGHTYminnow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MIGHTYminnow/mm-components","description":"[WordPress] Custom components and functionality for WordPress.","fork":false,"url":"https://api.github.com/repos/MIGHTYminnow/mm-components","forks_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/forks","keys_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/teams","hooks_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/hooks","issue_events_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/issues/events{/number}","events_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/events","assignees_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/assignees{/user}","branches_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/branches{/branch}","tags_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/tags","blobs_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/statuses/{sha}","languages_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/languages","stargazers_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/stargazers","contributors_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/contributors","subscribers_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/subscribers","subscription_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/subscription","commits_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/contents/{+path}","compare_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/merges","archive_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/downloads","issues_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/issues{/number}","pulls_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls{/number}","milestones_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/milestones{/number}","notifications_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/labels{/name}","releases_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/releases{/id}","deployments_url":"https://api.github.com/repos/MIGHTYminnow/mm-components/deployments","created_at":"2015-06-22T20:35:16Z","updated_at":"2016-02-18T01:26:08Z","pushed_at":"2016-04-24T06:26:49Z","git_url":"git://github.com/MIGHTYminnow/mm-components.git","ssh_url":"git@github.com:MIGHTYminnow/mm-components.git","clone_url":"https://github.com/MIGHTYminnow/mm-components.git","svn_url":"https://github.com/MIGHTYminnow/mm-components","homepage":"","size":3682,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":16,"forks":4,"open_issues":16,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129"},"html":{"href":"https://github.com/MIGHTYminnow/mm-components/pull/129"},"issue":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/issues/129"},"comments":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/MIGHTYminnow/mm-components/statuses/c3835ddf248aad33c0317b6ac4509797f5a0557d"}}}}