jerodsanto / wordpress-console Goto Github PK
View Code? Open in Web Editor NEWAn interactive console for WordPress developers
License: MIT License
An interactive console for WordPress developers
License: MIT License
=== WordPress Console === Contributors: sant0sk1 Donate link: http://jerodsanto.net Tags: admin, development, ajax, interactive, developer, shell, console, terminal Requires at least: 2.8 Tested up to: 3.5 Stable tag: trunk An interactive console for WordPress developers == Description == This plugin adds a "Console" page to the administrator's menu which provides a JavaScript-based interactive console that loads the WordPress environment. It allows execution of arbitrary PHP code as well as anything defined by WordPress or activated plugins. This is awesome for plugin developers and people learning PHP and/or the WordPress API. Still not convinced? [Watch a screencast!](http://vimeo.com/5300607) = New In This Version = 1. WordPress 3.5 Compatibility **SECURITY NOTICE** This plugin is for *development*. Do NOT run this plugin on your production server unless you don't mind possibly being owned by strangers. == Installation == 1. Upload wordpress-console/ directory to the wp-content/plugins directory. 2. Activate WordPress Console through the 'Plugins' menu in WordPress. 3. There is now a 'Console' item in the left-hand menu == Frequently Asked Questions == = Who is this plugin for? = The WordPress Console was designed to help plugin *developers* be more productive. It will do no good for the average joe user. It can also be used as a learning tool, because it provides an environment where people can play with PHP and WordPress. = Does this plugin rock? = Yes, yes it does. = I want feature [X] = You should fork the project on [GitHub](http://github.com/sant0sk1/wordpress-console) and help add it! Or contact me via [Twitter](http://twitter.com/sant0sk1) or my [blog](http://blog.jerodsanto.net) and let me know what features you think I should add. == Screenshots == 1. The WordPress Console 2. Tab Completion Example == Changelog == = 0.3.9 - * WordPress 3.5 Compatibility = 0.3.8 = * WordPress 3.3 Compatibility * Windows bug fix = 0.3.7 = * Bug fixes = 0.3.6 = * WordPress 3.2.1 compatibility * Security fixes * Ability to load plugin when symlinked = 0.3.5 = * WordPress 3.0.5 compatibility * Attempt to fix environment loading on non-standard installs = 0.3.4 = * No more WP_DEBUG deprecation warnings = 0.3.3 = * https support = 0.3.2 = * Keyboard shortcuts (ctrl+l, ctrl+a, ctrl+e) = 0.3.1 = * Better handling of custom class objects = 0.3.0 = * Access to admin functions * Top-level menu item * Bug fix for deprecated function calls = 0.2.3 = * WordPress 3.0 Compatibility = 0.2.2 = * WordPress 2.9 Compatibility * better return value printing = 0.2.1 = * WordPress 2.8.1 Compatibility * Bug fix: move cursor to end of input on "up-arrow" * Bug fix: don't allow history buffer to go negative = 0.2.0 = * Tab-completion * Bug fixes = 0.1.2 = * Bug Fix: WP installs not in root directory should get to play too. = 0.1.1 = * Require shared secret = 0.1.0 = * Initial release == Contributors == * [apokalyptik](http://blog.apokalyptik.com/) * [Doug Neiner](http://pixelgraphics.us/) * [Michael Weichert](https://github.com/mweichert)
I installed the plugin following the instructions, activated it. It displays correctly but any php code I execute, even the simplest results in:
"Error: get_class() expects parameter 1 to be object, string given"
Any hits as to what could be wrong? Anything I can do to debug this error?
Here's my environment info:
Wordpress version: 3.2.1
wordpress-console version: 0.3.7
Server version: Apache/2.2.20 (Ubuntu) built: Nov 7 2011 22:48:05
PHP version: 5.3.6-13ubuntu3.2 with Suhosin-Patch (cli) (built: Oct 13 2011 23:19:13)
In file console.js, at line 11, is assigning "self.url" to '/wp-content/plugins/wordpress-console/', but, if wordpress install is not in root, like my blog is in '/blog', the ajax request must receive 404 error, becaus the correct path (in self.url) should be '/blog/wp-content/plugins/wordpress-console/'.
There must be some way to fix it.
By the way, VERY NICE job! I like it so much! :D
Hi,
I'm running wordpress 2.8 in a '/blog' subdir.
when trying to test the plugin with
bloginfo('name');
i'm getting the above error message
See:
curl -v -v http://$HOSTNAME/wp-content/plugins/wordpress-console/query.php --data 'query=echo%201%2B1%3B'
Installing the plugin as-is is begging (pretty please) to be hacked.
Suggested fix: sign query with a shared secret, generated randomly (the random generation could be better, but it'll work for now)
Patch: http://blog.apokalyptik.com/files/wordpress-console-auth.diff
Do you still maintain this plugin?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.