{"action":"created","issue":{"url":"https://api.github.com/repos/presscustomizr/hueman/issues/571","repository_url":"https://api.github.com/repos/presscustomizr/hueman","labels_url":"https://api.github.com/repos/presscustomizr/hueman/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/presscustomizr/hueman/issues/571/comments","events_url":"https://api.github.com/repos/presscustomizr/hueman/issues/571/events","html_url":"https://github.com/presscustomizr/hueman/issues/571","id":262325839,"number":571,"title":"Potential loss of customizations when WP_INSTALLING=true","user":{"login":"Nikeo","id":3038156,"avatar_url":"https://avatars1.githubusercontent.com/u/3038156?v=4","gravatar_id":"","url":"https://api.github.com/users/Nikeo","html_url":"https://github.com/Nikeo","followers_url":"https://api.github.com/users/Nikeo/followers","following_url":"https://api.github.com/users/Nikeo/following{/other_user}","gists_url":"https://api.github.com/users/Nikeo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikeo/subscriptions","organizations_url":"https://api.github.com/users/Nikeo/orgs","repos_url":"https://api.github.com/users/Nikeo/repos","events_url":"https://api.github.com/users/Nikeo/events{/privacy}","received_events_url":"https://api.github.com/users/Nikeo/received_events","type":"User","site_admin":false},"labels":[{"id":73576508,"url":"https://api.github.com/repos/presscustomizr/hueman/labels/bug","name":"bug","color":"b60205","default":true},{"id":306393231,"url":"https://api.github.com/repos/presscustomizr/hueman/labels/urgent","name":"urgent","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"Nikeo","id":3038156,"avatar_url":"https://avatars1.githubusercontent.com/u/3038156?v=4","gravatar_id":"","url":"https://api.github.com/users/Nikeo","html_url":"https://github.com/Nikeo","followers_url":"https://api.github.com/users/Nikeo/followers","following_url":"https://api.github.com/users/Nikeo/following{/other_user}","gists_url":"https://api.github.com/users/Nikeo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikeo/subscriptions","organizations_url":"https://api.github.com/users/Nikeo/orgs","repos_url":"https://api.github.com/users/Nikeo/repos","events_url":"https://api.github.com/users/Nikeo/events{/privacy}","received_events_url":"https://api.github.com/users/Nikeo/received_events","type":"User","site_admin":false},"assignees":[{"login":"Nikeo","id":3038156,"avatar_url":"https://avatars1.githubusercontent.com/u/3038156?v=4","gravatar_id":"","url":"https://api.github.com/users/Nikeo","html_url":"https://github.com/Nikeo","followers_url":"https://api.github.com/users/Nikeo/followers","following_url":"https://api.github.com/users/Nikeo/following{/other_user}","gists_url":"https://api.github.com/users/Nikeo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikeo/subscriptions","organizations_url":"https://api.github.com/users/Nikeo/orgs","repos_url":"https://api.github.com/users/Nikeo/repos","events_url":"https://api.github.com/users/Nikeo/events{/privacy}","received_events_url":"https://api.github.com/users/Nikeo/received_events","type":"User","site_admin":false},{"login":"eri-trabiccolo","id":7689242,"avatar_url":"https://avatars3.githubusercontent.com/u/7689242?v=4","gravatar_id":"","url":"https://api.github.com/users/eri-trabiccolo","html_url":"https://github.com/eri-trabiccolo","followers_url":"https://api.github.com/users/eri-trabiccolo/followers","following_url":"https://api.github.com/users/eri-trabiccolo/following{/other_user}","gists_url":"https://api.github.com/users/eri-trabiccolo/gists{/gist_id}","starred_url":"https://api.github.com/users/eri-trabiccolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eri-trabiccolo/subscriptions","organizations_url":"https://api.github.com/users/eri-trabiccolo/orgs","repos_url":"https://api.github.com/users/eri-trabiccolo/repos","events_url":"https://api.github.com/users/eri-trabiccolo/events{/privacy}","received_events_url":"https://api.github.com/users/eri-trabiccolo/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/presscustomizr/hueman/milestones/9","html_url":"https://github.com/presscustomizr/hueman/milestone/9","labels_url":"https://api.github.com/repos/presscustomizr/hueman/milestones/9/labels","id":2618525,"number":9,"title":"3.3.21","description":"","creator":{"login":"Nikeo","id":3038156,"avatar_url":"https://avatars1.githubusercontent.com/u/3038156?v=4","gravatar_id":"","url":"https://api.github.com/users/Nikeo","html_url":"https://github.com/Nikeo","followers_url":"https://api.github.com/users/Nikeo/followers","following_url":"https://api.github.com/users/Nikeo/following{/other_user}","gists_url":"https://api.github.com/users/Nikeo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikeo/subscriptions","organizations_url":"https://api.github.com/users/Nikeo/orgs","repos_url":"https://api.github.com/users/Nikeo/repos","events_url":"https://api.github.com/users/Nikeo/events{/privacy}","received_events_url":"https://api.github.com/users/Nikeo/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"open","created_at":"2017-07-03T13:04:34Z","updated_at":"2017-10-04T17:17:51Z","due_on":"2017-10-03T07:00:00Z","closed_at":null},"comments":6,"created_at":"2017-10-03T07:09:03Z","updated_at":"2017-10-04T19:36:18Z","closed_at":"2017-10-03T12:48:56Z","author_association":"COLLABORATOR","body":"https://wordpress.org/support/topic/loss-of-customizations-when-viewing-wp-activate-php-in-as-admin/\r\n\r\n> Anytime we view wp-activate.php as an admin (happens when creating test users) we lose all the Customization settings for Hueman. I’ve tracked the issue down to WP_INSTALLING=true (see wp-activate.php) causing wp_cache_get( 'alloptions', 'options' ); to return false, instead of all options as expected. Because the admin user has the “edit_theme_options” permission hu_get_default_options() (hueman/functions/class-utils.php) decides it should rebuild the theme option cache with the incomplete options from wp_cache_get(). My temp solution is to edit hu_get_default_options() so that only when is_admin() == true and the user has the “edit_theme_options” permission do the theme options get rebuilt. This is a on a WP Network setup.\r\n> \r\n> I don’t know if this is the optimal solution, but some solution should be implemented as I doubt I’m the only person that has noticed this odd behavior. A better solution may be checking if WP_INSTALLING=true and not updating the options, but I have a hard time believe that anytime an admin views a page the theme options should be rebuilt."},"comment":{"url":"https://api.github.com/repos/presscustomizr/hueman/issues/comments/334266017","html_url":"https://github.com/presscustomizr/hueman/issues/571#issuecomment-334266017","issue_url":"https://api.github.com/repos/presscustomizr/hueman/issues/571","id":334266017,"user":{"login":"ryanrolds","id":343979,"avatar_url":"https://avatars1.githubusercontent.com/u/343979?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanrolds","html_url":"https://github.com/ryanrolds","followers_url":"https://api.github.com/users/ryanrolds/followers","following_url":"https://api.github.com/users/ryanrolds/following{/other_user}","gists_url":"https://api.github.com/users/ryanrolds/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanrolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanrolds/subscriptions","organizations_url":"https://api.github.com/users/ryanrolds/orgs","repos_url":"https://api.github.com/users/ryanrolds/repos","events_url":"https://api.github.com/users/ryanrolds/events{/privacy}","received_events_url":"https://api.github.com/users/ryanrolds/received_events","type":"User","site_admin":false},"created_at":"2017-10-04T19:36:18Z","updated_at":"2017-10-04T19:36:18Z","author_association":"NONE","body":":+1: "}}
{"actor":{"display_login":"ryanrolds"}}