{"id":6972347,"date":"2016-01-21T20:21:32","date_gmt":"2016-01-21T20:21:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-7-18\/"},"modified":"2016-08-31T00:43:34","modified_gmt":"2016-08-31T00:43:34","slug":"php-7-18","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-7-18\/","title":{"rendered":"PHP 7"},"content":{"rendered":"<p>This is more of a heads up than a complaint. In my local dev environment, I am beginning to test with PHP 7. In doing so, an error was generated by this plugin, stating:<\/p>\n<blockquote>\n<p>Fatal error: Switch statements may only contain one default clause in &#8230;\\wp-content\\plugins\\slash-admin\\options.php on line 296<\/p>\n<\/blockquote>\n<p>In looking at your code, I found a default clause on line 257 under case &#8216;upload&#8217;, then further down as indicated by the error message above you have the main switch default clause.<\/p>\n<p>Not sure if the default on line 257 was intentional. I have deleted it in my test environment, and so far all of your plugins functionality seems to be working for me.<\/p>\n<p>Again, this is only appearing when using php 7 so it will not be a major problem until that becomes the defacto standard.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/slash-admin\/<\/p>\n","protected":false},"template":"","class_list":["post-6972347","topic","type-topic","status-publish","hentry","topic-tag-php7"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6972347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6972347\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6972347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}