Theme Check
[resolved] [Plugin: Theme-Check] fopen | fwrite | fclose Warning (2 posts)

  1. merianos
    Posted 3 years ago #


    I am using the Theme Check plugin to check my theme.

    I did many correction, but now I have a problem with fopen/fwrite/fclose.

    What's wrong with that functions and I cannot use them.

    That functions are use to create CSS and JavaScript files for caching porpuses.

    Any idea please ?

    Kind regards
    Merianos Nikos


  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 3 years ago #

    The short answer is that you shouldn't be creating CSS or Javascript files for caching purposes.

    The longer answer is that if you are creating files, you need to use the WP_Filesystem functionality to be secure on shared hosting systems.

    More info here: http://ottopress.com/2011/tutorial-using-the-wp_filesystem/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic