{"action":"created","issue":{"url":"https://api.github.com/repos/itspriddle/wp-cli-tgmpa-plugin/issues/21","repository_url":"https://api.github.com/repos/itspriddle/wp-cli-tgmpa-plugin","labels_url":"https://api.github.com/repos/itspriddle/wp-cli-tgmpa-plugin/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/itspriddle/wp-cli-tgmpa-plugin/issues/21/comments","events_url":"https://api.github.com/repos/itspriddle/wp-cli-tgmpa-plugin/issues/21/events","html_url":"https://github.com/itspriddle/wp-cli-tgmpa-plugin/issues/21","id":185149816,"number":21,"title":"Handle outdated versions of TGMPA","user":{"login":"mrazzari","id":324617,"avatar_url":"https://avatars.githubusercontent.com/u/324617?v=3","gravatar_id":"","url":"https://api.github.com/users/mrazzari","html_url":"https://github.com/mrazzari","followers_url":"https://api.github.com/users/mrazzari/followers","following_url":"https://api.github.com/users/mrazzari/following{/other_user}","gists_url":"https://api.github.com/users/mrazzari/gists{/gist_id}","starred_url":"https://api.github.com/users/mrazzari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrazzari/subscriptions","organizations_url":"https://api.github.com/users/mrazzari/orgs","repos_url":"https://api.github.com/users/mrazzari/repos","events_url":"https://api.github.com/users/mrazzari/events{/privacy}","received_events_url":"https://api.github.com/users/mrazzari/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-25T15:22:12Z","updated_at":"2016-11-02T14:56:28Z","closed_at":"2016-11-02T02:09:09Z","body":"So I randomly came across an old-ish version of this [iribbon](https://wordpress.org/themes/iribbon/) theme, and here's what happens:\n\n```\n$ wp theme install https://downloads.wordpress.org/theme/iribbon.2.0.65.zip --activate\n$ wp tgmpa-plugin list\nPHP Fatal error:  Uncaught Error: Call to undefined method TGM_Plugin_Activation::get_instance() \nin /home/manuel/.wp-cli/packages/vendor/itspriddle/wp-cli-tgmpa-plugin/command.php:70\n```\n\nTurns out the theme is using TGMPA 2.3.6, which doesn't have a get_instance (added in 2.4.0). \n\nYou could catch that exception, and use another way to get the instance. But it could start breaking in some other places. So maybe just throw a nice WP_CLI::error and declare it unsupported? :roll_eyes: \n"},"comment":{"url":"https://api.github.com/repos/itspriddle/wp-cli-tgmpa-plugin/issues/comments/257889493","html_url":"https://github.com/itspriddle/wp-cli-tgmpa-plugin/issues/21#issuecomment-257889493","issue_url":"https://api.github.com/repos/itspriddle/wp-cli-tgmpa-plugin/issues/21","id":257889493,"user":{"login":"mrazzari","id":324617,"avatar_url":"https://avatars.githubusercontent.com/u/324617?v=3","gravatar_id":"","url":"https://api.github.com/users/mrazzari","html_url":"https://github.com/mrazzari","followers_url":"https://api.github.com/users/mrazzari/followers","following_url":"https://api.github.com/users/mrazzari/following{/other_user}","gists_url":"https://api.github.com/users/mrazzari/gists{/gist_id}","starred_url":"https://api.github.com/users/mrazzari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrazzari/subscriptions","organizations_url":"https://api.github.com/users/mrazzari/orgs","repos_url":"https://api.github.com/users/mrazzari/repos","events_url":"https://api.github.com/users/mrazzari/events{/privacy}","received_events_url":"https://api.github.com/users/mrazzari/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T14:56:28Z","updated_at":"2016-11-02T14:56:28Z","body":"That's great to hear, thanks for the fix! \r\nShocked to hear you're willing to try and support older versions of TGMPA.  I wouldn't dare ;)\r\n\r\nAnd thanks for the iribbon-fix idea. I don't have a use for it right now, but it's a great hack that will surely come useful."}}
{"actor":{"display_login":"mrazzari"}}