{"id":10656690,"date":"2018-09-04T19:30:16","date_gmt":"2018-09-04T19:30:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/2-suggestions-to-your-awesome-plugin\/"},"modified":"2018-09-04T19:30:16","modified_gmt":"2018-09-04T19:30:16","slug":"2-suggestions-to-your-awesome-plugin","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/2-suggestions-to-your-awesome-plugin\/","title":{"rendered":"2 suggestions to your awesome plugin!"},"content":{"rendered":"<p>I have 2 minor suggestions I make locally to your awesome plugin, that fixes the only 2 issues we always have.<\/p>\n<p>1) Line breaks not respected.<br \/>\n&#8211; In your get_content() method (line 534) of lj-maintenance-mode.php you are using wpautop, but not nl2br.  Because you are not using the WordPress get_content, you are losing the line breaks.  To fix this simply put  nl2br after the wpautop line e.g.<br \/>\n        $content = apply_filters(&#8216;wpautop&#8217;, $content);<br \/>\n        $content = nl2br($content);<\/p>\n<p>2) No html wrapper<br \/>\n&#8211; Styling the css is limited because you don&#8217;t wrap the content in a div wrapper. If you were to wrap all the content in a div wrap (or even 2 would be better), then the styling possibilities would be far greater. e.g. we usually want our maintenance page to be a logo with contact details, center aligned vertical and horizontal.  Without a div wrapper this is not possible.<br \/>\n&#8211; An easy solution is this (line 560):<br \/>\nreturn &#8216;&lt;div class=&#8221;maintenance-wrapper&#8221;&gt;&#8217; . $analytify . $code . $stylesheet . $widget_before . $content . $widget_after . &#8216;&lt;\/div&gt;&#8217;;<\/p>\n<p>Thanks for such an aweosme plugin, I appreciate the simplicity!!<\/p>\n","protected":false},"template":"","class_list":["post-10656690","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10656690","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\/10656690\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10656690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}