-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 suggestions to your awesome plugin! #47
Comments
Hi Lukas and Tim, Minor Request 1 (above)Choosing not to implement in 2.5.1 as it generates Observation: While unit testing the proposed code enhancement, it was observed that the existing built in WordPress Rich Text Editor (RTE)(with Visual & Test edit mode tabs) did actually respect "\n" as a new line between paragraphs ( Solution: When editing the RTE content on our sites; leave all newlines left aligned, with no RTE formatting, and then the new line would be identified, respected and left-alive in the generated output. Minor Request 2 (above)Adding the two div's after the style seems to work well, while remaining backward compatible with any of us who are using the
Working solution available in forked Milestone. |
I have 2 minor suggestions I make locally to your awesome plugin, that fixes the only 2 issues we always have. I can make a pull request if you prefer, just let me know.
Line breaks not respected.
– 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.
$content = apply_filters(‘wpautop’, $content);
$content = nl2br($content);
No html wrapper
– Styling the css is limited because you don’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.
– An easy solution is this (line 560):
return ‘
Thanks for such an aweosme plugin, I appreciate the simplicity!!
The text was updated successfully, but these errors were encountered: