{"action":"created","comment":{"url":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/comments/173957444","pull_request_review_id":103232136,"id":173957444,"diff_hunk":"@@ -75,7 +75,14 @@\n \t\t\t\t\t\t</div>\n \t\t\t\t\t\t<div class=\"wppr-review-grade-option-rating wppr-default\">\n \t\t\t\t\t\t\t<span class=\"<?php echo $review_object->get_rating_class( $review_option_rating ); ?>\"\n-\t\t\t\t\t\t\t\t  style=\"width:<?php echo esc_attr( $review_option_rating ); ?>%;\"></span>\n+\t\t\t\t\t\t\t<?php\n+\t\t\t\t\t\t\tif ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() || function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {\n+\t\t\t\t\t\t\t\techo 'style=\"min-width:'; // AMP style sanitizer coverts inline style's 'width' to 'max-width' which won't work.\n+\t\t\t\t\t\t\t} else {\n+\t\t\t\t\t\t\t\t\techo 'style=\"width:';","path":"includes/public/layouts/style1.php","position":9,"original_position":9,"commit_id":"fa9412ebed4b4e2336df5d853820b452c52b20b8","original_commit_id":"fa9412ebed4b4e2336df5d853820b452c52b20b8","user":{"login":"rohittm","id":3204558,"avatar_url":"https://avatars0.githubusercontent.com/u/3204558?v=4","gravatar_id":"","url":"https://api.github.com/users/rohittm","html_url":"https://github.com/rohittm","followers_url":"https://api.github.com/users/rohittm/followers","following_url":"https://api.github.com/users/rohittm/following{/other_user}","gists_url":"https://api.github.com/users/rohittm/gists{/gist_id}","starred_url":"https://api.github.com/users/rohittm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohittm/subscriptions","organizations_url":"https://api.github.com/users/rohittm/orgs","repos_url":"https://api.github.com/users/rohittm/repos","events_url":"https://api.github.com/users/rohittm/events{/privacy}","received_events_url":"https://api.github.com/users/rohittm/received_events","type":"User","site_admin":false},"body":"It will show the rating bars. But if in non-AMP version, the animations of filling bars won't be shown. If we use style=\"min-width: 50%; width: 50%;\" or style=\"width: 50%; min-width: 50%;\"","created_at":"2018-03-12T21:47:24Z","updated_at":"2018-03-12T21:47:24Z","html_url":"https://github.com/Codeinwp/wp-product-review/pull/257#discussion_r173957444","pull_request_url":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/comments/173957444"},"html":{"href":"https://github.com/Codeinwp/wp-product-review/pull/257#discussion_r173957444"},"pull_request":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257"}},"in_reply_to_id":173767172},"pull_request":{"url":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257","id":174096600,"html_url":"https://github.com/Codeinwp/wp-product-review/pull/257","diff_url":"https://github.com/Codeinwp/wp-product-review/pull/257.diff","patch_url":"https://github.com/Codeinwp/wp-product-review/pull/257.patch","issue_url":"https://api.github.com/repos/Codeinwp/wp-product-review/issues/257","number":257,"state":"open","locked":false,"title":"Amp UI fixes","user":{"login":"rohittm","id":3204558,"avatar_url":"https://avatars0.githubusercontent.com/u/3204558?v=4","gravatar_id":"","url":"https://api.github.com/users/rohittm","html_url":"https://github.com/rohittm","followers_url":"https://api.github.com/users/rohittm/followers","following_url":"https://api.github.com/users/rohittm/following{/other_user}","gists_url":"https://api.github.com/users/rohittm/gists{/gist_id}","starred_url":"https://api.github.com/users/rohittm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohittm/subscriptions","organizations_url":"https://api.github.com/users/rohittm/orgs","repos_url":"https://api.github.com/users/rohittm/repos","events_url":"https://api.github.com/users/rohittm/events{/privacy}","received_events_url":"https://api.github.com/users/rohittm/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-09T20:06:43Z","updated_at":"2018-03-12T21:47:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aedba1c0a07688466595b4a3913b06f8efd04413","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257/commits","review_comments_url":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257/comments","review_comment_url":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Codeinwp/wp-product-review/issues/257/comments","statuses_url":"https://api.github.com/repos/Codeinwp/wp-product-review/statuses/fa9412ebed4b4e2336df5d853820b452c52b20b8","head":{"label":"rohittm:AMP-UI","ref":"AMP-UI","sha":"fa9412ebed4b4e2336df5d853820b452c52b20b8","user":{"login":"rohittm","id":3204558,"avatar_url":"https://avatars0.githubusercontent.com/u/3204558?v=4","gravatar_id":"","url":"https://api.github.com/users/rohittm","html_url":"https://github.com/rohittm","followers_url":"https://api.github.com/users/rohittm/followers","following_url":"https://api.github.com/users/rohittm/following{/other_user}","gists_url":"https://api.github.com/users/rohittm/gists{/gist_id}","starred_url":"https://api.github.com/users/rohittm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohittm/subscriptions","organizations_url":"https://api.github.com/users/rohittm/orgs","repos_url":"https://api.github.com/users/rohittm/repos","events_url":"https://api.github.com/users/rohittm/events{/privacy}","received_events_url":"https://api.github.com/users/rohittm/received_events","type":"User","site_admin":false},"repo":{"id":124101401,"name":"wp-product-review","full_name":"rohittm/wp-product-review","owner":{"login":"rohittm","id":3204558,"avatar_url":"https://avatars0.githubusercontent.com/u/3204558?v=4","gravatar_id":"","url":"https://api.github.com/users/rohittm","html_url":"https://github.com/rohittm","followers_url":"https://api.github.com/users/rohittm/followers","following_url":"https://api.github.com/users/rohittm/following{/other_user}","gists_url":"https://api.github.com/users/rohittm/gists{/gist_id}","starred_url":"https://api.github.com/users/rohittm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohittm/subscriptions","organizations_url":"https://api.github.com/users/rohittm/orgs","repos_url":"https://api.github.com/users/rohittm/repos","events_url":"https://api.github.com/users/rohittm/events{/privacy}","received_events_url":"https://api.github.com/users/rohittm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rohittm/wp-product-review","description":"Easily turn your basic posts into in-depth reviews with ratings, pros and cons and affiliate links .","fork":true,"url":"https://api.github.com/repos/rohittm/wp-product-review","forks_url":"https://api.github.com/repos/rohittm/wp-product-review/forks","keys_url":"https://api.github.com/repos/rohittm/wp-product-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rohittm/wp-product-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rohittm/wp-product-review/teams","hooks_url":"https://api.github.com/repos/rohittm/wp-product-review/hooks","issue_events_url":"https://api.github.com/repos/rohittm/wp-product-review/issues/events{/number}","events_url":"https://api.github.com/repos/rohittm/wp-product-review/events","assignees_url":"https://api.github.com/repos/rohittm/wp-product-review/assignees{/user}","branches_url":"https://api.github.com/repos/rohittm/wp-product-review/branches{/branch}","tags_url":"https://api.github.com/repos/rohittm/wp-product-review/tags","blobs_url":"https://api.github.com/repos/rohittm/wp-product-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rohittm/wp-product-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rohittm/wp-product-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/rohittm/wp-product-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rohittm/wp-product-review/statuses/{sha}","languages_url":"https://api.github.com/repos/rohittm/wp-product-review/languages","stargazers_url":"https://api.github.com/repos/rohittm/wp-product-review/stargazers","contributors_url":"https://api.github.com/repos/rohittm/wp-product-review/contributors","subscribers_url":"https://api.github.com/repos/rohittm/wp-product-review/subscribers","subscription_url":"https://api.github.com/repos/rohittm/wp-product-review/subscription","commits_url":"https://api.github.com/repos/rohittm/wp-product-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/rohittm/wp-product-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/rohittm/wp-product-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/rohittm/wp-product-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/rohittm/wp-product-review/contents/{+path}","compare_url":"https://api.github.com/repos/rohittm/wp-product-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rohittm/wp-product-review/merges","archive_url":"https://api.github.com/repos/rohittm/wp-product-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rohittm/wp-product-review/downloads","issues_url":"https://api.github.com/repos/rohittm/wp-product-review/issues{/number}","pulls_url":"https://api.github.com/repos/rohittm/wp-product-review/pulls{/number}","milestones_url":"https://api.github.com/repos/rohittm/wp-product-review/milestones{/number}","notifications_url":"https://api.github.com/repos/rohittm/wp-product-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rohittm/wp-product-review/labels{/name}","releases_url":"https://api.github.com/repos/rohittm/wp-product-review/releases{/id}","deployments_url":"https://api.github.com/repos/rohittm/wp-product-review/deployments","created_at":"2018-03-06T15:51:09Z","updated_at":"2018-03-06T15:51:11Z","pushed_at":"2018-03-09T20:03:37Z","git_url":"git://github.com/rohittm/wp-product-review.git","ssh_url":"git@github.com:rohittm/wp-product-review.git","clone_url":"https://github.com/rohittm/wp-product-review.git","svn_url":"https://github.com/rohittm/wp-product-review","homepage":"http://wordpress.org/plugins/wp-product-review/","size":2340,"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":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Codeinwp:development","ref":"development","sha":"7af16561b5021ebd29bc4bdbd4f4ec657bcd72c5","user":{"login":"Codeinwp","id":6852555,"avatar_url":"https://avatars2.githubusercontent.com/u/6852555?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeinwp","html_url":"https://github.com/Codeinwp","followers_url":"https://api.github.com/users/Codeinwp/followers","following_url":"https://api.github.com/users/Codeinwp/following{/other_user}","gists_url":"https://api.github.com/users/Codeinwp/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeinwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeinwp/subscriptions","organizations_url":"https://api.github.com/users/Codeinwp/orgs","repos_url":"https://api.github.com/users/Codeinwp/repos","events_url":"https://api.github.com/users/Codeinwp/events{/privacy}","received_events_url":"https://api.github.com/users/Codeinwp/received_events","type":"Organization","site_admin":false},"repo":{"id":17632834,"name":"wp-product-review","full_name":"Codeinwp/wp-product-review","owner":{"login":"Codeinwp","id":6852555,"avatar_url":"https://avatars2.githubusercontent.com/u/6852555?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeinwp","html_url":"https://github.com/Codeinwp","followers_url":"https://api.github.com/users/Codeinwp/followers","following_url":"https://api.github.com/users/Codeinwp/following{/other_user}","gists_url":"https://api.github.com/users/Codeinwp/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeinwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeinwp/subscriptions","organizations_url":"https://api.github.com/users/Codeinwp/orgs","repos_url":"https://api.github.com/users/Codeinwp/repos","events_url":"https://api.github.com/users/Codeinwp/events{/privacy}","received_events_url":"https://api.github.com/users/Codeinwp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Codeinwp/wp-product-review","description":"Easily turn your basic posts into in-depth reviews with ratings, pros and cons and affiliate links .","fork":false,"url":"https://api.github.com/repos/Codeinwp/wp-product-review","forks_url":"https://api.github.com/repos/Codeinwp/wp-product-review/forks","keys_url":"https://api.github.com/repos/Codeinwp/wp-product-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Codeinwp/wp-product-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Codeinwp/wp-product-review/teams","hooks_url":"https://api.github.com/repos/Codeinwp/wp-product-review/hooks","issue_events_url":"https://api.github.com/repos/Codeinwp/wp-product-review/issues/events{/number}","events_url":"https://api.github.com/repos/Codeinwp/wp-product-review/events","assignees_url":"https://api.github.com/repos/Codeinwp/wp-product-review/assignees{/user}","branches_url":"https://api.github.com/repos/Codeinwp/wp-product-review/branches{/branch}","tags_url":"https://api.github.com/repos/Codeinwp/wp-product-review/tags","blobs_url":"https://api.github.com/repos/Codeinwp/wp-product-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Codeinwp/wp-product-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Codeinwp/wp-product-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/Codeinwp/wp-product-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Codeinwp/wp-product-review/statuses/{sha}","languages_url":"https://api.github.com/repos/Codeinwp/wp-product-review/languages","stargazers_url":"https://api.github.com/repos/Codeinwp/wp-product-review/stargazers","contributors_url":"https://api.github.com/repos/Codeinwp/wp-product-review/contributors","subscribers_url":"https://api.github.com/repos/Codeinwp/wp-product-review/subscribers","subscription_url":"https://api.github.com/repos/Codeinwp/wp-product-review/subscription","commits_url":"https://api.github.com/repos/Codeinwp/wp-product-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/Codeinwp/wp-product-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/Codeinwp/wp-product-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/Codeinwp/wp-product-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/Codeinwp/wp-product-review/contents/{+path}","compare_url":"https://api.github.com/repos/Codeinwp/wp-product-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Codeinwp/wp-product-review/merges","archive_url":"https://api.github.com/repos/Codeinwp/wp-product-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Codeinwp/wp-product-review/downloads","issues_url":"https://api.github.com/repos/Codeinwp/wp-product-review/issues{/number}","pulls_url":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls{/number}","milestones_url":"https://api.github.com/repos/Codeinwp/wp-product-review/milestones{/number}","notifications_url":"https://api.github.com/repos/Codeinwp/wp-product-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Codeinwp/wp-product-review/labels{/name}","releases_url":"https://api.github.com/repos/Codeinwp/wp-product-review/releases{/id}","deployments_url":"https://api.github.com/repos/Codeinwp/wp-product-review/deployments","created_at":"2014-03-11T14:14:26Z","updated_at":"2018-03-12T18:02:29Z","pushed_at":"2018-03-12T11:10:50Z","git_url":"git://github.com/Codeinwp/wp-product-review.git","ssh_url":"git@github.com:Codeinwp/wp-product-review.git","clone_url":"https://github.com/Codeinwp/wp-product-review.git","svn_url":"https://github.com/Codeinwp/wp-product-review","homepage":"http://wordpress.org/plugins/wp-product-review/","size":2337,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":12,"open_issues":15,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257"},"html":{"href":"https://github.com/Codeinwp/wp-product-review/pull/257"},"issue":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/issues/257"},"comments":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/issues/257/comments"},"review_comments":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257/comments"},"review_comment":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/pulls/257/commits"},"statuses":{"href":"https://api.github.com/repos/Codeinwp/wp-product-review/statuses/fa9412ebed4b4e2336df5d853820b452c52b20b8"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rohittm"}}