GithubHelp home page GithubHelp logo

No php file functions about wpthemereview HOT 6 OPEN

wptt avatar wptt commented on June 21, 2024
No php file functions

from wpthemereview.

Comments (6)

dd32 avatar dd32 commented on June 21, 2024 3

Just throwing a note out there - WP_Filesystem shouldn't be used in the way we see it used in themes due to these rules. It's not a replacement for file_get_contents() and the like, and is only really supposed to be used when FTP/file-editing is needed interactively.

This TRT rule makes themes effectively hide what they're doing, when it's a completely legitimate use-case for the direct filesystem calls.

from wpthemereview.

justintadlock avatar justintadlock commented on June 21, 2024 1

^ One of the reasons I've been pushing to get file_get_contents() OK'd.

from wpthemereview.

khacoder avatar khacoder commented on June 21, 2024

I have this sniff ready to go and will upload after final testing.

from wpthemereview.

grappler avatar grappler commented on June 21, 2024

If the check is failing which it was in the Theme Check it should have been Required instead of a Warning so an Error is OK.

from wpthemereview.

jrfnl avatar jrfnl commented on June 21, 2024

@dd32 As these things are in WPCS as well, I'd love to hear your voice in the discussion being had here: WordPress/WordPress-Coding-Standards#1265.

(Merged) PR WordPress/WordPress-Coding-Standards#1374 in response to WordPress/WordPress-Coding-Standards#943 is hopefully a step in the right direction ?

from wpthemereview.

dingo-d avatar dingo-d commented on June 21, 2024

What is the status of this issue?

from wpthemereview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.