yup, file_put_contents will generate warning in ThemeCheck plugin.
If you don’t want to get this warning, you can try to use built-in WordPress
Also, I thought you were the one reviewing the theme
I am not TF theme reviewer.
Back to 2012, some theme authors simply remove wpautop filter to avoid this shortcode output issue. Then, this solution bring many issues to end user. Then, it is not allowed here.
I also developed similar function to solve this shortcode output issue for my previous themes on TF, and it was accepted. But yes, I do not remove line break or empty paragraph on my function. And I apply that function to specific shortcodes.
Good luck with your theme.
Different theme marketplace have different theme reviewer, and of course, different code standard.
For this case, TF theme reviewer said, “This is a poor practice and we’re encouraging authors to use another methods rather than stripping out or modifying native WordPress functionalities.” And personally I agree with the bold statement above.
You ask help on this forum, and I give my comment. If you think that you have valid argument on this issue, then you can try to submit your theme again and add some notes for the theme reviewer. Usually you will get additional & detail feedback from the theme reviewer (if they are in a good mod of course)...
The key message is you cannot apply that function to all shortcodes (and all post contents), because only few shortcodes need that…
For example, based on your code:
Line 605 and 606 can be applied to
[column] shortcode to clean the shortcode output from unproper
<p> tag from
BUT, line 607,608,609 replaces any line break or empty paragraph to be a space and it is not acceptable.
the first step, ask your hosting provider to scan your hosting account and change all of your password immediately…
So how can i check this? Where do i have to look? Please help!!
If you are familiar on working with php files, you can start searching the code like this on the parent theme files… Note: usually I use Notepad++ for my code editor to find a piece of code from a directory.
get_template_part( "templates/slider" );
If you can’t find this code on the theme, don’t waste your time, contact theme author and ask him to make the theme more child theme friendly…
We need to check how this theme developer call this template/slider.php in the parent theme.
If he use include(), require(), include_once(), or require_once() to call this template/slider.php, then it doesn’t support child theme 100%... (BAD)
But, if he use get_template_part() to call this template/slider.php, then it support child theme… (GOOD)
Last year we can get an RSS feed URL for our facebook status, but I think it is no longer available now. When it was available, we could use any RSS poster plugin to do what you need.
Btw, you can try to check some Facebook plugins in Wodpress plugin repository. For example, http://wordpress.org/extend/plugins/recent-facebook-posts/ It doesn’t feed facebook to be a blog post, but at least it can show your facebook status on your blog.