Comments (3)
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.
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.
No problem! Glad the theme works for you! :)
from wordpress-starter-theme.
Related Issues (14)
- Getting error Warning: call_user_func_array() expects parameter 1 to be a valid callback HOT 3
- grunt deploy:production gives rsync error HOT 4
- Incorrect path for skip-link-focus-fix.js and navigation.js
- "styles" task finised after >30s on Windows HOT 1
- Sass error : File not found
- Is this still supported and updated HOT 2
- Grunt imagemin error - "Cannot read property 'contents' of undefined" HOT 3
- Getting Error Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_set_excerpt_length' not found or invalid function name in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 298 HOT 1
- Wordpress "The tracked link has expired." error HOT 2
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'ReduxFramework' does not have a method '_options_page' in /home4/wilmer/public_html/wp-includes/plugin.php on line 525 HOT 2
- Required Plugins HOT 4
- Just noticed a spelling/class name mistake HOT 1
- gulp file setup really slow. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-starter-theme.