GithubHelp home page GithubHelp logo

Comments (6)

ernilambar avatar ernilambar commented on July 24, 2024 1

INI customization is surely not a theme territory. We can add this sniff as ERROR.

from wpthemereview.

jrfnl avatar jrfnl commented on July 24, 2024 1

IMO: just add it to the ruleset and possibly make it an error in all cases.

The $whitelisted_options is a very limited list and I don't think we need to worry about it unless you've seen people use any of those within themes. If you have, then yes, extending the class and overloading the property with an empty array should do the trick. I don't think any other changes should be needed.

For the details:

from wpthemereview.

dingo-d avatar dingo-d commented on July 24, 2024

I think that themes shouldn't set php config values at runtime, sounds like a plugin territory to me.

@carolinan @justintadlock @jocastaneda Thoughts?

from wpthemereview.

aristath avatar aristath commented on July 24, 2024

The only times I can think of that would "require" a theme to change config values would be during a demo import - which is indeed plugin territory. Other than that I can't imagine a valid scenario for themes changing config values

from wpthemereview.

dingo-d avatar dingo-d commented on July 24, 2024

Should we just add this in the ruleset, or should we extend it and remove all $whitelisted_options ?

from wpthemereview.

jrfnl avatar jrfnl commented on July 24, 2024

Closing as PR #219 has been merged.

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.