Coder Social home page Coder Social logo

Comments (3)

mattbanks avatar mattbanks commented on May 20, 2024

It looks like Display Tweets is checking current_user_can( 'edit_plugins' ) for the $capability of add_option_page, which isn't the best way to check that (see here for Codex entry).

My starter theme has a line in lib/init.php to set DISALLOW_FILE_EDIT to true (line 37, which disables the Theme and Plugin Editor so no one can change the code in themes and plugins from the dashboard. If you delete or comment this out in init.php, it'll fix the issue with the Display Tweets plugin.

I set DISALLOW_FILE_EDIT to prevent clients from editing code (and giving them extra confusing options in the Admin area) and for added security just in case a site gets hacked.

from wordpress-starter-theme.

BenBish avatar BenBish commented on May 20, 2024

Thank you, much appreciated sir! Its given me what I needed to go on. I like the added security so will probably modify their plugin to make it work with your theme.

Thanks for the prompt response and especially for the theme!

from wordpress-starter-theme.

mattbanks avatar mattbanks commented on May 20, 2024

No problem! Glad the theme works for you! :)

from wordpress-starter-theme.

Related Issues (14)

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.