{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/5287","repository_url":"https://api.github.com/repos/Automattic/jetpack","labels_url":"https://api.github.com/repos/Automattic/jetpack/issues/5287/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/5287/comments","events_url":"https://api.github.com/repos/Automattic/jetpack/issues/5287/events","html_url":"https://github.com/Automattic/jetpack/issues/5287","id":181854322,"number":5287,"title":"Undefined function (get_user_attribute) errors in admin pages","user":{"login":"yohgaki","id":118485,"avatar_url":"https://avatars.githubusercontent.com/u/118485?v=3","gravatar_id":"","url":"https://api.github.com/users/yohgaki","html_url":"https://github.com/yohgaki","followers_url":"https://api.github.com/users/yohgaki/followers","following_url":"https://api.github.com/users/yohgaki/following{/other_user}","gists_url":"https://api.github.com/users/yohgaki/gists{/gist_id}","starred_url":"https://api.github.com/users/yohgaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohgaki/subscriptions","organizations_url":"https://api.github.com/users/yohgaki/orgs","repos_url":"https://api.github.com/users/yohgaki/repos","events_url":"https://api.github.com/users/yohgaki/events{/privacy}","received_events_url":"https://api.github.com/users/yohgaki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/jetpack/labels/AtD","name":"AtD","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Status]%20Needs%20Author%20Reply","name":"[Status] Needs Author Reply","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-08T23:25:06Z","updated_at":"2016-10-27T11:43:49Z","closed_at":"2016-10-27T11:43:49Z","body":"#### Steps to reproduce the issue\r\n\r\nI moved my blog from CentOS6+PHP5.6 to CentOS7+PHP7.1RC3, then I start getting Undefined function (get_user_attribute) errors in admin pages somehow. No additional module nor data changes at all.\r\n\r\nI had to change\r\n\r\nif ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {\r\n\r\nto\r\n\r\nif ( false && defined( 'IS_WPCOM' ) && IS_WPCOM ) {\r\n\r\nin\r\n\r\nwp-content/plugins/jetpack/modules/after-the-deadline.php\r\n\r\nI grepped all php files to see if get_user_attribute() is defined anywhere and didn't find any. Letting 'if' condition false seems to solve this issue.\r\n\r\n#### What I expected\r\n\r\nNo errors.\r\n\r\n#### What happened instead\r\n\r\nBlank pages in admin pages due to undefined function. "}}
{"actor":{"display_login":"jeherve"}}